public class Form
extends java.lang.Object
Form
links all Input element attached to it.Modifier and Type | Field and Description |
---|---|
java.lang.String |
method |
java.lang.String |
url |
Constructor and Description |
---|
Form(Form previous,
AttributeList atts)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildURL(java.lang.String buttonName)
Builds the URL with all form values.
|
static java.lang.String |
getValue(Control c)
Returns the value of the given Control.
|
void |
reset()
This method is called by the reset button of the form
to reset the contents of the form to their default values.
|
static void |
setValue(Control c,
java.lang.String val)
Sets the value of the given Control.
|
void |
submit(java.lang.String buttonValue)
This method is called by the submit button of the form
to submit the contents of the form to the server.
|
public Form(Form previous, AttributeList atts)
previous
- previous form, if any. null otherwise.atts
- tag attributespublic java.lang.String buildURL(java.lang.String buttonName)
public void submit(java.lang.String buttonValue)
buttonValue
- The text of the buttonpublic void reset()
public static java.lang.String getValue(Control c)
public static void setValue(Control c, java.lang.String val)