cx.ath.matthew.cgi
Class HTMLForm

java.lang.Object
  extended by cx.ath.matthew.cgi.HTMLForm

public class HTMLForm
extends java.lang.Object

Class to manage drawing HTML forms


Constructor Summary
HTMLForm(java.lang.String target)
           
HTMLForm(java.lang.String target, java.lang.String submitlabel)
           
HTMLForm(java.lang.String target, java.lang.String submitlabel, java.lang.String tableclass)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLForm

public HTMLForm(java.lang.String target)
Parameters:
target - The module to submit to

HTMLForm

public HTMLForm(java.lang.String target,
                java.lang.String submitlabel)
Parameters:
target - The module to submit to
submitlabel - The string to display on the submit button

HTMLForm

public HTMLForm(java.lang.String target,
                java.lang.String submitlabel,
                java.lang.String tableclass)
Parameters:
target - The module to submit to
submitlabel - The string to display on the submit button
tableclass - The class= parameter for the generated table
Method Detail

addField

public void addField(Field field)
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

public void display(CGI cgi)
Shows the form.

Parameters:
cgi - The CGI instance that is handling output