Package totalcross.ui.html
Class Form
- java.lang.Object
-
- totalcross.ui.html.Form
-
public class Form extends java.lang.ObjectFormlinks all Input element attached to it.
-
-
Constructor Summary
Constructors Constructor Description Form(Form previous, AttributeList atts)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbuildURL(java.lang.String buttonName)Builds the URL with all form values.static java.lang.StringgetValue(Control c)Returns the value of the given Control.voidreset()This method is called by the reset button of the form to reset the contents of the form to their default values.static voidsetValue(Control c, java.lang.String val)Sets the value of the given Control.voidsubmit(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.
-
-
-
Constructor Detail
-
Form
public Form(Form previous, AttributeList atts)
Constructor- Parameters:
previous- previous form, if any. null otherwise.atts- tag attributes
-
-
Method Detail
-
buildURL
public java.lang.String buildURL(java.lang.String buttonName)
Builds the URL with all form values.
-
submit
public 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. It loops in all named containers of the form and get their value,- Parameters:
buttonValue- The text of the button
-
reset
public void reset()
This method is called by the reset button of the form to reset the contents of the form to their default values.
-
getValue
public static java.lang.String getValue(Control c)
Returns the value of the given Control. Used by this Form to build the url with parameters.
-
setValue
public static void setValue(Control c, java.lang.String val)
Sets the value of the given Control.
-
-