    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.

##

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

##

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

##

IntegerField

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

IntegerField

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

##

getEditor

     public Component getEditor()

  Get an editor to edit this form field.

  Overrides:
    getEditor in class FormField

getIntValue

     public int getIntValue()

  Get this field integer value.

  Returns:
    The current field's value.

acceptChange

     public boolean acceptChange(Integer ival)

  Do we accept this new value as our setting ?

getValue

     public Object getValue()

  Get our value, in its native type.

  Overrides:
    getValue in class FormField

setValue

     public void setValue(Integer ival,
                          boolean notify,
                          boolean update) throws IllegalFieldValueException

  Set our value.

  Parameters:
    value - The proposed value.

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