com.ldodds.foafamatic
Class FriendManager

java.lang.Object
  |
  +--com.ldodds.foafamatic.AbstractPanelManager
        |
        +--com.ldodds.foafamatic.FriendManager

public class FriendManager
extends AbstractPanelManager

Manages the Friend data in the user interface, and provides it to the ModelBuilder for populating the model.

This code is Public Domain

Author:
ccslrd

Field Summary
 
Fields inherited from class com.ldodds.foafamatic.AbstractPanelManager
_form, _items, _table, _theForm
 
Constructor Summary
FriendManager()
           
 
Method Summary
 void addFriendToTable(boolean update)
          Add/update a Person in the table.
 boolean addToArray(java.lang.String[] fields, java.lang.Object field, int index, boolean required)
          Add field data to the provided array.
 boolean isNullOrEmpty(java.lang.String value)
           
 void populateTableWithItem(java.lang.Object item)
          Add a friend to the internal list, and make it visible in the UI
 
Methods inherited from class com.ldodds.foafamatic.AbstractPanelManager
addItem, addItems, clearEntryFields, deleteSelected, getItems, getText, showCue, showSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FriendManager

public FriendManager()
Method Detail

populateTableWithItem

public void populateTableWithItem(java.lang.Object item)
Add a friend to the internal list, and make it visible in the UI

Specified by:
populateTableWithItem in class AbstractPanelManager

addFriendToTable

public void addFriendToTable(boolean update)
Add/update a Person in the table. Performs validation on the entered fields


addToArray

public boolean addToArray(java.lang.String[] fields,
                          java.lang.Object field,
                          int index,
                          boolean required)
Add field data to the provided array. As a side-effect will trigger showing of data entry hints if required fields aren't provided.


isNullOrEmpty

public boolean isNullOrEmpty(java.lang.String value)