| Constructor and Description |
|---|
FormRandomIntegerField(int size) |
FormRandomIntegerField(int minValue,
int maxValue) |
| 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() |
java.lang.Long |
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 form (no input allowed).
|
void |
setToolTipText(java.lang.String newText)
Sets the tool-tip text for the field.
|
void |
setValue(int intValue) |
void |
setValue(java.lang.Long newValue)
Sets the current value for this field.
|
void |
setValueSafely(java.lang.Object newValue)
Sets the value safely, e.g.
|
void |
valueChanged(java.lang.Long newValue)
When the value changes, this is run.
|
public FormRandomIntegerField(int size)
public FormRandomIntegerField(int minValue,
int maxValue)
public void setValue(int intValue)
public java.lang.Long getValue()
FormFieldpublic void setValue(java.lang.Long newValue)
FormFieldpublic void setValueSafely(java.lang.Object newValue)
FormFieldsetValueSafely in interface FormField<java.lang.Long>public void addFieldListener(FormFieldListener nosey)
FormFieldaddFieldListener in interface FormField<java.lang.Long>nosey - the interested partypublic void doAction()
FormFieldpublic javax.swing.JComponent getGui()
FormFieldpublic void removeFieldListener(FormFieldListener nosey)
FormFieldremoveFieldListener in interface FormField<java.lang.Long>nosey - the interested partypublic void setToolTipText(java.lang.String newText)
FormFieldsetToolTipText in interface FormField<java.lang.Long>public void valueChanged(java.lang.Long newValue)
FormFieldvalueChanged in interface FormField<java.lang.Long>public void selectAll()
FormFieldpublic void selectNone()
FormFieldselectNone in interface FormField<java.lang.Long>public void grabFocus()
FormFieldpublic void setDisabled(boolean disabled)
setDisabled in interface FormField<java.lang.Long>public boolean isDisabled()
isDisabled in interface FormField<java.lang.Long>public java.lang.String getToolTipText()
getToolTipText in interface FormField<java.lang.Long>