cx.ath.matthew.cgi
Class HTMLForm
Class to manage drawing HTML forms
HTMLForm(String target)
|
HTMLForm(String target, String submitlabel)
|
HTMLForm(String target, String submitlabel, String tableclass)
|
void | addField(Field field) - Add a field to be displayed in the form.
|
void | display(CGI cgi) - Shows the form.
|
void | setGET(boolean enable) - Set GET method rather than POST
|
HTMLForm
public HTMLForm(String target)
target
- The module to submit to
HTMLForm
public HTMLForm(String target,
String submitlabel)
target
- The module to submit tosubmitlabel
- The string to display on the submit button
HTMLForm
public HTMLForm(String target,
String submitlabel,
String tableclass)
target
- The module to submit tosubmitlabel
- The string to display on the submit buttontableclass
- The class= parameter for the generated table
addField
public void addField(Field field)
Add a field to be displayed in the form.
field
- A Field subclass.
display
public void display(CGI cgi)
Shows the form.
cgi
- The CGI instance that is handling output
setGET
public void setGET(boolean enable)
Set GET method rather than POST
enable
- Enable/Disable GET