|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.forms.FormField org.w3c.tools.forms.StringField
public class StringField
An editor for string fields.
Field Summary |
---|
Fields inherited from class org.w3c.tools.forms.FormField |
---|
manager, name, title |
Constructor Summary | |
---|---|
StringField(FormManager manager,
java.lang.String name,
java.lang.String title)
Create a new field for string edition, with no initial value. |
|
StringField(FormManager manager,
java.lang.String name,
java.lang.String title,
java.lang.String value)
Create a new field for string edition. |
Method Summary | |
---|---|
boolean |
acceptChange(java.lang.String value)
Do we want to accept this value as our new value. |
java.awt.Component |
getEditor()
FormField implementation - Get the editor for the field. |
java.lang.String |
getStringValue()
Get this field value as a String. |
java.lang.Object |
getValue()
Get this field's value according to its native type. |
void |
setValue(java.lang.Object value,
boolean notify,
boolean update)
Set this field value. |
void |
setValue(java.lang.String value,
boolean notify,
boolean update)
Set this field value. |
Methods inherited from class org.w3c.tools.forms.FormField |
---|
getName, getTitle, gotFocus, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringField(FormManager manager, java.lang.String name, java.lang.String title, java.lang.String value)
manager
- The form manager.value
- The initial value for the field.public StringField(FormManager manager, java.lang.String name, java.lang.String title)
manager
- The form manager.name
- The field's name.title
- The field's title.Method Detail |
---|
public boolean acceptChange(java.lang.String value)
public java.lang.Object getValue()
getValue
in class FormField
public java.lang.String getStringValue()
public void setValue(java.lang.Object value, boolean notify, boolean update) throws IllegalFieldValueException
setValue
in class FormField
value
- This field's new value.notify
- Should we notify the manager for this change ?update
- Update the editor view, if true.
IllegalFieldValueException
- if the value isn't acceptedpublic void setValue(java.lang.String value, boolean notify, boolean update) throws IllegalFieldValueException
IllegalFieldValueException
- if the value isn't acceptedpublic java.awt.Component getEditor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |