    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.tools.forms.BooleanField

    java.lang.Object
       |
       +----org.w3c.tools.forms.FormField
               |
               +----org.w3c.tools.forms.OptionField
                       |
                       +----org.w3c.tools.forms.BooleanField

public class BooleanField
extends OptionField

##

BooleanField(FormManager, String, String, boolean)
  Create a boolean field.

##

acceptChange(int)
  Do we accept the given change ?
getBooleanValue()
  Get this field's value as a boolean.
getValue()
  Get this field's value according to its native type.
setValue(Object, boolean, boolean)
  Set this field's boolean value.

##

BooleanField

     public BooleanField(FormManager manager,
                         String name,
                         String title,
                         boolean value) throws IllegalFieldValueException

  Create a boolean field.

##

acceptChange

     public boolean acceptChange(int idx)

  Do we accept the given change ?

  Overrides:
    acceptChange in class OptionField

setValue

     public void setValue(Object value,
                          boolean notify,
                          boolean update) throws IllegalFieldValueException

  Set this field's boolean value.

  Parameters:
    value - A Boolean object.
    udate - Should we update the editor's view ?
  Throws: IllegalFieldValueException
    If the field rejected the value.
  Overrides:
    setValue in class OptionField

getValue

     public Object getValue()

  Get this field's value according to its native type.

  Overrides:
    getValue in class OptionField

getBooleanValue

     public Boolean getBooleanValue()

  Get this field's value as a boolean.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index