All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdsu.html.Form

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

public class Form
extends 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 Index

 o append(HTML)
Appends the given HTML object to the current end of the form.
 o append(HTML, String)
Appends the given HTML object then the label to the current end of the form.
 o append(String)
Appends the given string to the current end of the form.
 o append(String, HTML)
Appends the given label then the HTML object to the current end of the form.
 o appendLine()
Appends a line break to the current end of the form.
 o appendLine(HTML)
Appends the given HTML object then line break to the current end of the form.
 o appendLine(HTML, String)
Appends the given HTML object then the label then a line break to the current end of the form.
 o appendLine(String)
Appends the given text then line break to the current end of the form.
 o appendLine(String, HTML)
Appends the given label then the HTML object then line break to the current end of the form.
 o methodGet(String)
Returns form object which will send a get request to the given url.
 o methodPost(String)
Returns form object which will send a post request to the given url.
 o toString()
Converts the Form to an string with proper html tags

Methods

 o methodGet
 public static Form methodGet(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
 o methodPost
 public static Form methodPost(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
 o append
 public void append(String asciiText)
Appends the given string to the current end of the form. Special characters in asciiText are escaped for you.

 o 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.

 o append
 public void append(HTML htmlObject,
                    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.

 o append
 public void append(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.

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

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

 o appendLine
 public void appendLine(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.

 o appendLine
 public void appendLine(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.

 o appendLine
 public void appendLine(HTML htmlObject,
                        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.

 o toString
 public String toString()
Converts the Form to an string with proper html tags

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index