All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.forms.IntegerField

java.lang.Object
   |
   +----w3c.tools.forms.FormField
           |
           +----w3c.tools.forms.IntegerField

public class IntegerField
extends FormField
An editor for integer field.


Constructor Index

 o IntegerField(FormManager, String, String, int)
 o IntegerField(FormManager, String, String, Integer)

Method Index

 o acceptChange(Integer)
Do we accept this new value as our setting ?
 o getEditor()
Get an editor to edit this form field.
 o getIntValue()
Get this field integer value.
 o getValue()
Get our value, in its native type.
 o setValue(Integer, boolean, boolean)
Set our value.
 o setValue(Object, boolean, boolean)
Set this field value.

Constructors

 o IntegerField
 public IntegerField(FormManager manager,
                     String name,
                     String title,
                     Integer ival)
 o IntegerField
 public IntegerField(FormManager manager,
                     String name,
                     String title,
                     int value)

Methods

 o getEditor
 public Component getEditor()
Get an editor to edit this form field.

Overrides:
getEditor in class FormField
 o getIntValue
 public int getIntValue()
Get this field integer value.

Returns:
The current field's value.
 o acceptChange
 public boolean acceptChange(Integer ival)
Do we accept this new value as our setting ?

 o getValue
 public Object getValue()
Get our value, in its native type.

Overrides:
getValue in class FormField
 o setValue
 public void setValue(Integer ival,
                      boolean notify,
                      boolean update) throws IllegalFieldValueException
Set our value.

Parameters:
value - The proposed value.
 o setValue
 public void setValue(Object value,
                      boolean notify,
                      boolean update) throws IllegalFieldValueException
Set this field value.

Overrides:
setValue in class FormField

All Packages  Class Hierarchy  This Package  Previous  Next  Index