sdsu.html
Class Form

java.lang.Object
  |
  +--sdsu.html.Form

public class Form
extends java.lang.Object
implements HTML

Use the class class to build an HTML form.

Version:
0.8 6 April 1997
Author:
Roger Whitney (whitney@cs.sdsu.edu)

Method Summary
 void append(HTML htmlObject)
          Appends the given HTML object to the current end of the form.
 void append(HTML htmlObject, java.lang.String label)
          Appends the given HTML object then the label to the current end of the form.
 void append(java.lang.String asciiText)
          Appends the given string to the current end of the form.
 void append(java.lang.String label, HTML htmlObject)
          Appends the given label then the HTML object to the current end of the form.
 void appendLine()
          Appends a line break to the current end of the form.
 void appendLine(HTML htmlObject)
          Appends the given HTML object then line break to the current end of the form.
 void appendLine(HTML htmlObject, java.lang.String label)
          Appends the given HTML object then the label then a line break to the current end of the form.
 void appendLine(java.lang.String text)
          Appends the given text then line break to the current end of the form.
 void appendLine(java.lang.String label, HTML htmlObject)
          Appends the given label then the HTML object then line break to the current end of the form.
static Form methodGet(java.lang.String url)
          Returns form object which will send a get request to the given url.
static Form methodPost(java.lang.String url)
          Returns form object which will send a post request to the given url.
 java.lang.String toString()
          Converts the Form to an string with proper html tags
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

methodGet

public static Form methodGet(java.lang.String url)
Returns form object which will send a get request to the given url.
Parameters:
url - location to send the form when user submits form

methodPost

public static Form methodPost(java.lang.String url)
Returns form object which will send a post request to the given url.
Parameters:
url - location to send the form when user submits form

append

public void append(java.lang.String asciiText)
Appends the given string to the current end of the form. Special characters in asciiText are escaped for you.

append

public void append(HTML htmlObject)
Appends the given HTML object to the current end of the form. The HTML object is immediately converted to a string, so any changes made to the object later will not be reflected.

append

public void append(HTML htmlObject,
                   java.lang.String label)
Appends the given HTML object then the label to the current end of the form. Special characters in the label are escaped for you.

append

public void append(java.lang.String label,
                   HTML htmlObject)
Appends the given label then the HTML object to the current end of the form. Special characters in the label are escaped for you.

appendLine

public void appendLine()
Appends a line break to the current end of the form.

appendLine

public void appendLine(HTML htmlObject)
Appends the given HTML object then line break to the current end of the form.

appendLine

public void appendLine(java.lang.String text)
Appends the given text then line break to the current end of the form. Special characters in the label are escaped for you.

appendLine

public void appendLine(java.lang.String label,
                       HTML htmlObject)
Appends the given label then the HTML object then line break to the current end of the form. Special characters in the label are escaped for you.

appendLine

public void appendLine(HTML htmlObject,
                       java.lang.String label)
Appends the given HTML object then the label then a line break to the current end of the form. Special characters in the label are escaped for you.

toString

public java.lang.String toString()
Converts the Form to an string with proper html tags
Specified by:
toString in interface HTML
Overrides:
toString in class java.lang.Object