T - type of value the FormField editspublic interface FormField<T>
Copyright 2005-2009 Partner Software, Inc.
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getToolTipText() |
T |
getValue()
Returns the current value for this field.
|
void |
grabFocus()
Grab the GUI keyboard/mouse focus, if possible.
|
boolean |
isDisabled() |
void |
removeFieldListener(FormFieldListener nosey)
Remove a listener for value change and action events.
|
void |
selectAll()
If appropriate, select all (all text, all values in a list, etc.).
|
void |
selectNone()
If appropriate, select none (no text, no values in a list, etc.).
|
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 |
setValueSafely(java.lang.Object object)
Sets the value safely, e.g.
|
void |
valueChanged(T newValue)
When the value changes, this is run.
|
javax.swing.JComponent getGui()
T getValue()
void setValue(T newValue)
void valueChanged(T newValue)
void doAction()
void setToolTipText(java.lang.String newText)
newText - java.lang.String getToolTipText()
void addFieldListener(FormFieldListener nosey)
nosey - the interested partyvoid removeFieldListener(FormFieldListener nosey)
nosey - the interested partyvoid setDisabled(boolean disabled)
boolean isDisabled()
void setValueSafely(java.lang.Object object)
void selectAll()
void selectNone()
void grabFocus()