|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - type of value the FormField editspublic interface FormField<T>
A data-entry field on a Form. Provides a more standard and data-oriented interface for the wide variety of Java components that allow setting a data value.
Copyright 2005-2009 Partner Software, Inc.
| Method Summary | |
|---|---|
void |
addFieldListener(FormFieldListener nosey)
Add a listener for value change and action events. |
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. |
T |
getValue()
Returns the current value for this field. |
boolean |
isDisabled()
|
void |
removeFieldListener(FormFieldListener nosey)
Remove a listener for value change and action events. |
void |
setDisabled(boolean disabled)
If true, disables the field (no input allowed). |
void |
setToolTipText(java.lang.String newText)
Sets the tool-tip text for the field. |
void |
setValue(T newValue)
Sets the current value for this field. |
void |
valueChanged(T newValue)
When the value changes, this is run. |
| Method Detail |
|---|
javax.swing.JComponent getGui()
T getValue()
void setValue(T newValue)
void valueChanged(T newValue)
void doAction()
void setToolTipText(java.lang.String newText)
newText - void addFieldListener(FormFieldListener nosey)
nosey - the interested partyvoid removeFieldListener(FormFieldListener nosey)
nosey - the interested partyvoid setDisabled(boolean disabled)
boolean isDisabled()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||