|
|||||||||
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.IntegerField
public class IntegerField
An editor for integer field.
Field Summary |
---|
Fields inherited from class org.w3c.tools.forms.FormField |
---|
manager, name, title |
Constructor Summary | |
---|---|
IntegerField(FormManager manager,
java.lang.String name,
java.lang.String title,
int value)
|
|
IntegerField(FormManager manager,
java.lang.String name,
java.lang.String title,
java.lang.Integer ival)
|
Method Summary | |
---|---|
boolean |
acceptChange(java.lang.Integer ival)
Do we accept this new value as our setting ? |
java.awt.Component |
getEditor()
Get an editor to edit this form field. |
int |
getIntValue()
Get this field integer value. |
java.lang.Object |
getValue()
Get our value, in its native type. |
void |
setValue(java.lang.Integer ival,
boolean notify,
boolean update)
Set our value. |
void |
setValue(java.lang.Object value,
boolean notify,
boolean update)
Set our 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 IntegerField(FormManager manager, java.lang.String name, java.lang.String title, java.lang.Integer ival)
public IntegerField(FormManager manager, java.lang.String name, java.lang.String title, int value)
Method Detail |
---|
public java.awt.Component getEditor()
public int getIntValue()
public boolean acceptChange(java.lang.Integer ival)
public java.lang.Object getValue()
getValue
in class FormField
public void setValue(java.lang.Integer ival, boolean notify, boolean update) throws IllegalFieldValueException
value
- The proposed value.
IllegalFieldValueException
- if the value isn't acceptedpublic void setValue(java.lang.Object value, boolean notify, boolean update) throws IllegalFieldValueException
setValue
in class FormField
value
- The proposed value.notify
- Should we notify the manager for this change ?update
- Update the editor view, if true.
IllegalFieldValueException
- if the value isn't accepted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |