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