T - type of value the form editspublic abstract class AbstractFormField<T> extends java.lang.Object implements FormField<T>
Copyright 2008 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JComponent |
gui |
| Constructor and Description |
|---|
AbstractFormField() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldListener(FormFieldListener nosey)
Add a listener for value change and action events.
|
protected FormFieldPopup |
createPopup() |
void |
doAction()
This does different things depending on the field; for example in a text
field it indicates return was hit.
|
protected void |
fireActionRequested() |
protected void |
fireValueChanged() |
javax.swing.JComponent |
getGui()
Returns the GUI component for this field.
|
java.lang.String |
getToolTipText() |
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 form (no input allowed).
|
void |
setToolTipText(java.lang.String newText)
Sets the tool-tip text for the field.
|
java.lang.String |
toString() |
void |
valueChanged(T newValue)
When the value changes, this is run.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetValue, setValue, setValueSafelypublic javax.swing.JComponent getGui()
FormFieldpublic void valueChanged(T newValue)
FormFieldvalueChanged in interface FormField<T>public void doAction()
FormFieldpublic void setToolTipText(java.lang.String newText)
FormFieldsetToolTipText in interface FormField<T>public java.lang.String getToolTipText()
getToolTipText in interface FormField<T>public void addFieldListener(FormFieldListener nosey)
FormFieldaddFieldListener in interface FormField<T>nosey - the interested partypublic void removeFieldListener(FormFieldListener nosey)
FormFieldremoveFieldListener in interface FormField<T>nosey - the interested partypublic void setDisabled(boolean disabled)
setDisabled in interface FormField<T>public boolean isDisabled()
isDisabled in interface FormField<T>public void selectAll()
FormFieldpublic void selectNone()
FormFieldselectNone in interface FormField<T>public void grabFocus()
FormFieldprotected void fireValueChanged()
protected void fireActionRequested()
protected FormFieldPopup createPopup()
public java.lang.String toString()
toString in class java.lang.Object