|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
totalcross.lang.Objecttotalcross.ui.html.Form
public class Form
Form links all Input element attached to it.
| Field Summary | |
|---|---|
String |
method
|
String |
url
|
| Constructor Summary | |
|---|---|
Form(Form previous,
AttributeList atts)
Constructor |
|
| Method Summary | |
|---|---|
String |
buildURL(String buttonName)
Builds the URL with all form values. |
static 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,
String val)
Sets the value of the given Control. |
void |
submit(String buttonValue)
This method is called by the submit button of the form to submit the contents of the form to the server. |
| Methods inherited from class totalcross.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String method
public String url
| Constructor Detail |
|---|
public Form(Form previous,
AttributeList atts)
previous - previous form, if any. null otherwise.atts - tag attributes| Method Detail |
|---|
public String buildURL(String buttonName)
public void submit(String buttonValue)
buttonValue - The text of the buttonpublic void reset()
public static String getValue(Control c)
public static void setValue(Control c,
String val)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||