|
||||||||||
| 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.DoubleField
| Field Summary |
| Fields inherited from class org.w3c.tools.forms.FormField |
manager, name, title |
| Constructor Summary | |
DoubleField(FormManager manager,
java.lang.String name,
java.lang.String title)
Create a new uninitialized double field. |
|
DoubleField(FormManager manager,
java.lang.String name,
java.lang.String title,
java.lang.Double value)
Create a new double field. |
|
| Method Summary | |
boolean |
acceptChange(java.lang.Double dval)
Do we want to accept this new value ? |
java.lang.Double |
getDoubleValue()
Get this field's value as a Double. |
java.awt.Component |
getEditor()
Get an editor for this field. |
java.lang.Object |
getValue()
Get this field's value in its native format (ie Double). |
void |
setValue(java.lang.Double value,
boolean notify,
boolean update)
Set this field's value to the given Double value. |
void |
setValue(java.lang.Object value,
boolean notify,
boolean update)
Set this field's value to thegiven object. |
| 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 DoubleField(FormManager manager,
java.lang.String name,
java.lang.String title,
java.lang.Double value)
throws IllegalFieldValueException
manager - The associated form manager.name - The name for this field.title - This field's title.value - The initial value for the field.
IllegalFieldValueException - If the default value isn't
accepted by the field.
public DoubleField(FormManager manager,
java.lang.String name,
java.lang.String title)
manager - The asociated form manager.name - The field's name.title - The field's title.| Method Detail |
public boolean acceptChange(java.lang.Double dval)
public java.lang.Object getValue()
getValue in class FormFieldpublic java.lang.Double getDoubleValue()
public void setValue(java.lang.Object value,
boolean notify,
boolean update)
throws IllegalFieldValueException
setValue in class FormFieldvalue - The new value for the field.update - Should the editor updates its view ?notify - Should we notify the manager for this change ?
IllegalFieldValueException - If the provided value is not
a Double object.
public void setValue(java.lang.Double value,
boolean notify,
boolean update)
throws IllegalFieldValueException
value - The double value to set the field to.update - Should the editor updates its view ?
IllegalFieldValueException - If the value couldn't be set.public java.awt.Component getEditor()
getEditor in class FormField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||