All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.forms.BooleanField

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

public class BooleanField
extends OptionField

Constructor Index

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

Method Index

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

Constructors

 o BooleanField
 public BooleanField(FormManager manager,
                     String name,
                     String title,
                     boolean value) throws IllegalFieldValueException
Create a boolean field.

Methods

 o acceptChange
 public boolean acceptChange(int idx)
Do we accept the given change ?

Overrides:
acceptChange in class OptionField
 o 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
 o getValue
 public Object getValue()
Get this field's value according to its native type.

Overrides:
getValue in class OptionField
 o getBooleanValue
 public Boolean getBooleanValue()
Get this field's value as a boolean.


All Packages  Class Hierarchy  This Package  Previous  Next  Index