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.
-
StringField(FormManager, String, String)
- Create a new field for string edition, with no initial value.
-
StringField(FormManager, String, String, String)
- Create a new field for string edition.
-
acceptChange(String)
- Do we want to accept this value as our new value.
-
getEditor()
- FormField implementation - Get the editor for the field.
-
getStringValue()
- Get this field value as a String.
-
getValue()
- Get this field's value according to its native type.
-
setValue(Object, boolean, boolean)
- Set this field value.
-
setValue(String, boolean, boolean)
-
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.
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.
acceptChange
public boolean acceptChange(String value)
- Do we want to accept this value as our new value.
getValue
public Object getValue()
- Get this field's value according to its native type.
- Overrides:
- getValue in class FormField
getStringValue
public String getStringValue()
- Get this field value as a String.
setValue
public void setValue(Object value,
boolean notify,
boolean update) throws IllegalFieldValueException
- Set this field value.
- Overrides:
- setValue in class FormField
setValue
public void setValue(String value,
boolean notify,
boolean update) throws IllegalFieldValueException
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