| java.lang.Object org.w3c.tools.forms.FormManager
FormManager | public class FormManager (Code) | | |
Method Summary | |
public void | addField(FormField field) Add a field to the form. | protected FormPanel | createPanel() Construct the Panel to edit the form. | public void | finish() Mark the description of the form as completed. | public 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. | public void | gotoField(int idx) Move to the field whose index is given. | public static void | main(String args) Test. | public void | nextField() Move the focus to the next editable field. | public void | notifyChange(FormField field) Callback for field value's change. |
cursor | protected int cursor(Code) | | The current field being edited, as an index in our fields.
|
finished | protected boolean finished(Code) | | Is this form description completed ?
|
vfields | protected Vector vfields(Code) | | Our list of field, at description time.
|
FormManager | public FormManager(String title)(Code) | | Create a new, empty form.
Parameters: title - The form's title. |
addField | public void addField(FormField field)(Code) | | Add a field to the form.
Parameters: name - The field name (the key by wich this field will be accessible.) Parameters: field - The field to be created. |
createPanel | protected FormPanel createPanel()(Code) | | Construct the Panel to edit the form.
A Panel instance, layed out for this form edition. |
finish | public void finish()(Code) | | 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()(Code) | | Get the graphical object for editing the form.
|
gotFocus | protected void gotFocus(FormField field)(Code) | | Some of our field got the focus, update our cursor.
Parameters: field - The field that now has the focus. |
gotoField | public void gotoField(int idx)(Code) | | Move to the field whose index is given.
Parameters: n - The field to move to. |
nextField | public void nextField()(Code) | | Move the focus to the next editable field.
|
notifyChange | public void notifyChange(FormField field)(Code) | | Callback for field value's change.
Parameters: field - The field that changed. |
|
|