Class w3c.tools.forms.StringField
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.forms.StringField

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

public class StringField
extends FormField
An editor for string fields.

Constructor Index

 o StringField(FormManager, String, String)
Create a new field for string edition, with no initial value.
 o StringField(FormManager, String, String, String)
Create a new field for string edition.

Method Index

 o acceptChange(String)
Do we want to accept this value as our new value.
 o getEditor()
FormField implementation - Get the editor for the field.
 o getStringValue()
Get this field value as a String.
 o getValue()
Get this field's value according to its native type.
 o setValue(Object, boolean, boolean)
Set this field value.
 o setValue(String, boolean, boolean)

Constructors

 o StringField
  public StringField(FormManager manager,
                     String name,
                     String title,
                     String value)
Create a new field for string edition.
Parameters:
manager - The form manager.
value - The initial value for the field.
 o StringField
  public StringField(FormManager manager,
                     String name,
                     String title)
Create a new field for string edition, with no initial value.
Parameters:
manager - The form manager.
name - The field's name.
title - The field's title.

Methods

 o acceptChange
  public boolean acceptChange(String value)
Do we want to accept this value as our new value.
 o getValue
  public Object getValue()
Get this field's value according to its native type.
Overrides:
getValue in class FormField
 o getStringValue
  public String getStringValue()
Get this field value as a String.
 o setValue
  public void setValue(Object value,
                       boolean notify,
                       boolean update) throws IllegalFieldValueException
Set this field value.
Overrides:
setValue in class FormField
 o setValue
  public void setValue(String value,
                       boolean notify,
                       boolean update) throws IllegalFieldValueException
 o getEditor
  public Component getEditor()
FormField implementation - Get the editor for the field.
Overrides:
getEditor in class FormField

All Packages  Class Hierarchy  This Package  Previous  Next  Index