|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.tools.forms.FormManager
public class FormManager
Field Summary | |
---|---|
protected int |
cursor
The current field being edited, as an index in our fields. |
protected FormField[] |
fields
Our list of fields, at runtime. |
protected boolean |
finished
Is this form description completed ? |
protected FormPanel |
panel
The form grphical UI. |
protected java.lang.String |
title
The form's title. |
protected java.util.Vector |
vfields
Our list of field, at description time. |
Constructor Summary | |
---|---|
FormManager(java.lang.String title)
Create a new, empty form. |
Method Summary | |
---|---|
void |
addField(FormField field)
Add a field to the form. |
protected FormPanel |
createPanel()
Construct the Panel to edit the form. |
void |
finish()
Mark the description of the form as completed. |
java.awt.Panel |
getPanel()
Get the graphical object for editing the form. |
protected void |
gotFocus(FormField field)
Some of our field got the focus, update our cursor. |
void |
gotoField(int idx)
Move to the field whose index is given. |
static void |
main(java.lang.String[] args)
Test. |
void |
nextField()
Move the focus to the next editable field. |
void |
notifyChange(FormField field)
Callback for field value's change. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector vfields
protected FormField[] fields
protected int cursor
protected boolean finished
protected java.lang.String title
protected FormPanel panel
Constructor Detail |
---|
public FormManager(java.lang.String title)
title
- The form's title.Method Detail |
---|
public void notifyChange(FormField field)
field
- The field that changed.protected FormPanel createPanel()
public void gotoField(int idx)
n
- The field to move to.public void nextField()
protected void gotFocus(FormField field)
field
- The field that now has the focus.public void addField(FormField field)
name
- The field name (the key by wich this field will be
accessible.)field
- The field to be created.public void finish()
public java.awt.Panel getPanel()
public static void main(java.lang.String[] args) throws IllegalFieldValueException
IllegalFieldValueException
- test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |