    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

##

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

##

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

##

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

##

name

     protected String name

  The field's name.

title

     protected String title

  The field's title.

manager

     protected FormManager manager

  The associated form manager.

##

FormField

     public FormField(FormManager manager,
                      String name,
                      String title)

  Form field basic constructor.

##

getName

     public String getName()

  Get the field's name.

getTitle

     public String getTitle()

  Get the field's title.

gotFocus

     protected void gotFocus()

  Our editor is telling us that it got the focus, propagate to manager.

getValue

     public abstract Object getValue()

  Get this field value's in its native type.

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.

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