|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.services.html.HtmlElement
com.jcorporate.expresso.services.html.Form
An HTML form
| Field Summary |
| Fields inherited from class com.jcorporate.expresso.services.html.HtmlElement |
attributes, contents, cSSClass, cSSID |
| Constructor Summary | |
Form()
Constructor |
|
Form(HtmlElement newElement)
Constructor Create a form with the contents of the given element |
|
Form(String newName)
Constructor |
|
| Method Summary | |
protected void |
display(PrintWriter out,
int depth)
Display the form |
void |
setAction(String newAction)
Set the "action" field of this form - what happens when the form is submitted |
void |
setEncoding(String newEncoding)
Set the "enctype" field of this form - sets the encoding of the request to the server |
void |
setMethod(String newMethod)
Set the "method" of this form - post or get |
| Methods inherited from class com.jcorporate.expresso.services.html.HtmlElement |
add, display, finalize, getAttribute, getContentCount, getCSSClass, getName, padWithTabs, setAttribute, setCSSClass, setCSSID, setDisplayed, setName, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Form()
throws HtmlException
HtmlException - If the superclass constructor fails
public Form(HtmlElement newElement)
throws HtmlException
newElement - An HTML element to be the contents of this form
HtmlException - If the parameter is invalid
public Form(String newName)
throws HtmlException
newName - Name of the form
HtmlException - if the parameter is invalid or the superclass
constructor fails| Method Detail |
protected void display(PrintWriter out,
int depth)
throws HtmlException
display in class HtmlElementdepth - the number of tabs to indentout - PrintWriter for display
HtmlException - If there is an error displaying the form
public void setAction(String newAction)
throws HtmlException
newAction - New Action field for this form
HtmlException - if the parameter is invalid
public void setEncoding(String newEncoding)
throws HtmlException
newEncoding - New ENCTYPE field for this form
HtmlException - if the parameter is invalid
public void setMethod(String newMethod)
throws HtmlException
newMethod - POST or GET
HtmlException - If the parameter is invalid
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||