com.partnersoft.gui
Interface GUIField

All Known Implementing Classes:
BigStringField, CheckboxField, ColorField, ComboField, DateField, FilenameField, IconField, PasswordField, PicklistField, StringField, TextAreaField

public interface GUIField

A data-entry field on a GUIForm.

Author:
Paul Reavis Copyright 2005 Partner Software, Inc.

Method Summary
 void doAction()
          This does different things depending on the field; for example in a text field it indicates return was hit.
 javax.swing.JComponent getGUI()
          Returns the GUI component for this field.
 java.lang.Object getValue()
          Returns the current value for this field.
 void setValue(java.lang.Object newValue)
          Sets the current value for this field.
 void valueChanged(java.lang.Object newValue)
          When the value changes, this is run.
 

Method Detail

getGUI

javax.swing.JComponent getGUI()
Returns the GUI component for this field.


getValue

java.lang.Object getValue()
Returns the current value for this field.


setValue

void setValue(java.lang.Object newValue)
Sets the current value for this field.


valueChanged

void valueChanged(java.lang.Object newValue)
When the value changes, this is run. Use as a more convenient form of event handling.


doAction

void doAction()
This does different things depending on the field; for example in a text field it indicates return was hit.