All Packages Class Hierarchy This Package Previous Next Index
Class w3c.tools.forms.FormManager
java.lang.Object
|
+----w3c.tools.forms.FormManager
- public class FormManager
- extends Object
-
cursor
- The current field being edited, as an index in our fields.
-
fields
- Our list of fields, at runtime.
-
finished
- Is this form description completed ?
-
panel
- The form grphical UI.
-
title
- The form's title.
-
vfields
- Our list of field, at description time.
-
FormManager(String)
- Create a new, empty form.
-
addField(FormField)
- Add a field to the form.
-
createPanel()
- Construct the Panel to edit the form.
-
finish()
- Mark the description of the form as completed.
-
getPanel()
- Get the graphical object for editing the form.
-
gotFocus(FormField)
- Some of our field got the focus, update our cursor.
-
gotoField(int)
- Move to the field whose index is given.
-
main(String[])
- Test.
-
nextField()
- Move the focus to the next editable field.
-
notifyChange(FormField)
- Callback for field value's change.
vfields
protected Vector vfields
- Our list of field, at description time.
fields
protected FormField fields[]
- Our list of fields, at runtime.
cursor
protected int cursor
- The current field being edited, as an index in our fields.
finished
protected boolean finished
- Is this form description completed ?
title
protected String title
- The form's title.
panel
protected FormPanel panel
- The form grphical UI.
FormManager
public FormManager(String title)
- Create a new, empty form.
- Parameters:
- title - The form's title.
notifyChange
public void notifyChange(FormField field)
- Callback for field value's change.
- Parameters:
- field - The field that changed.
createPanel
protected FormPanel createPanel()
- Construct the Panel to edit the form.
- Returns:
- A Panel instance, layed out for this form edition.
gotoField
public void gotoField(int idx)
- Move to the field whose index is given.
- Parameters:
- n - The field to move to.
nextField
public void nextField()
- Move the focus to the next editable field.
gotFocus
protected void gotFocus(FormField field)
- Some of our field got the focus, update our cursor.
- Parameters:
- field - The field that now has the focus.
addField
public void addField(FormField field)
- Add a field to the form.
- Parameters:
- name - The field name (the key by wich this field will be
accessible.)
- field - The field to be created.
finish
public void finish()
- Mark the description of the form as completed.
Once this method is called, no more fields can be added to the form.
This method will perform any required compilation of the form.
getPanel
public Panel getPanel()
- Get the graphical object for editing the form.
main
public static void main(String args[]) throws IllegalFieldValueException
- Test.
All Packages Class Hierarchy This Package Previous Next Index