|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.gui.forms.AbstractFormField<T>
T - type of value the form editspublic abstract class AbstractFormField<T>
Starter implementation of FormField. Has a protected gui variable to provide getGui(), and provides do-nothing implementations of valueChanged(T) and doAction().
Copyright 2008 Partner Software, Inc.
| Field Summary | |
|---|---|
protected javax.swing.JComponent |
gui
|
| Constructor Summary | |
|---|---|
AbstractFormField()
|
|
| 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. |
protected void |
fireActionRequested()
|
protected void |
fireValueChanged()
|
javax.swing.JComponent |
getGui()
Returns the GUI component 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 form (no input allowed). |
void |
setToolTipText(java.lang.String newText)
Sets the tool-tip text for the field. |
void |
valueChanged(T newValue)
When the value changes, this is run. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.partnersoft.gui.forms.FormField |
|---|
getValue, setValue |
| Field Detail |
|---|
protected javax.swing.JComponent gui
| Constructor Detail |
|---|
public AbstractFormField()
| Method Detail |
|---|
public javax.swing.JComponent getGui()
FormField
getGui in interface FormField<T>public void valueChanged(T newValue)
FormField
valueChanged in interface FormField<T>public void doAction()
FormField
doAction in interface FormField<T>public void setToolTipText(java.lang.String newText)
FormField
setToolTipText in interface FormField<T>public void addFieldListener(FormFieldListener nosey)
FormField
addFieldListener in interface FormField<T>nosey - the interested partypublic void removeFieldListener(FormFieldListener nosey)
FormField
removeFieldListener 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>protected void fireValueChanged()
protected void fireActionRequested()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||