com.linxpda.dbaware
Interface DBAware

All Known Implementing Classes:
DBTextField, DBCheckbox, DBRadiobox, DBList, DBContainer, DBRadioGroup, DBTextArea, DBScrollPanel, DBNumericField, DBChoice

public interface DBAware

Interface used by all PJODe data-aware classes. Provides access to the data column in which the data will be stored, as well as a standard mechanism to get the component's value in a manner it understands. The reset method is called by the DBRootPanel any time the program requests a clear screen.


Method Summary
 java.lang.String getColumnLabel()
          Returns the data column label associated with this component.
 java.lang.Object getValue()
          Returns a dbaware component's value as an Object formatted in a manner in which the component can display.
 void reset()
          Resets the component upon a request to clear screen from a DBRootPanel.
 void setColumnLabel(java.lang.String label)
          Sets the data column into which this component's value will be stored.
 void setValue(Entry value)
          Passes an Entry object, from which the dbaware component retrieves it's value and displays it.
 

Method Detail

getColumnLabel

public java.lang.String getColumnLabel()
Returns the data column label associated with this component.

setColumnLabel

public void setColumnLabel(java.lang.String label)
Sets the data column into which this component's value will be stored.
Parameters:
label - The name of the column in which to store this component's value.

getValue

public java.lang.Object getValue()
Returns a dbaware component's value as an Object formatted in a manner in which the component can display.

setValue

public void setValue(Entry value)
Passes an Entry object, from which the dbaware component retrieves it's value and displays it.

reset

public void reset()
Resets the component upon a request to clear screen from a DBRootPanel.