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