All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.forms.FormField

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

public abstract class FormField
extends Object

Variable Index

 o manager
The associated form manager.
 o name
The field's name.
 o title
The field's title.

Constructor Index

 o FormField(FormManager, String, String)
Form field basic constructor.

Method Index

 o getName()
Get the field's name.
 o getTitle()
Get the field's title.
 o getValue()
Get this field value's in its native type.
 o gotFocus()
Our editor is telling us that it got the focus, propagate to manager.
 o setValue(Object, boolean)
Set this field's value, notifying the manager.
 o setValue(Object, boolean, boolean)
Set this field value.

Variables

 o name
 protected String name
The field's name.

 o title
 protected String title
The field's title.

 o manager
 protected FormManager manager
The associated form manager.

Constructors

 o FormField
 public FormField(FormManager manager,
                  String name,
                  String title)
Form field basic constructor.

Methods

 o getName
 public String getName()
Get the field's name.

 o getTitle
 public String getTitle()
Get the field's title.

 o gotFocus
 protected void gotFocus()
Our editor is telling us that it got the focus, propagate to manager.

 o getValue
 public abstract Object getValue()
Get this field value's in its native type.

 o setValue
 public abstract void setValue(Object value,
                               boolean notify,
                               boolean update) throws IllegalFieldValueException
Set this field value.

Parameters:
value - This field's new value.
notify - Should we notify the manager for this change ?
update - Update the editor view, if true.
Throws: IllegalFieldValueException
If the field rejected the value.
 o setValue
 public void setValue(Object value,
                      boolean update) throws IllegalFieldValueException
Set this field's value, notifying the manager.

Parameters:
value - The new field value.
update - Should we update the editor's view ?
Throws: IllegalFieldValueException
If the field rejected the value.

All Packages  Class Hierarchy  This Package  Previous  Next  Index