Package overit.geocall.ui
Class PostUrl
java.lang.Object
overit.geocall.ui.PostUrl
- All Implemented Interfaces:
SingleUseComponent
This class implements the
SingleUseComponent interface, and represents an object that can be added to the page
to create a form that can post some parameters and specifies where to send the form data when is submitted-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEvery component can add a script to the StringBuilder, script executed when the component is created.org.apache.ecs.ElementCreates a form containing a list of hidden fields that corresponds to the values to pass in the Http POST method; sets the action of the form as the url used to construct the PostUrl object and the method to POST.
-
Field Details
-
_url
-
_postParams
-
_uid
-
-
Constructor Details
-
PostUrl
Constructs a new PostUrl object- Parameters:
url- The string that defines the URLpostParams- TheHashMapthat contains the parameters that will be passed in the Http POST method
-
-
Method Details
-
buildSetupScript
Every component can add a script to the StringBuilder, script executed when the component is created. The PostUrl object adds the JavaScript string that defines the command of submit of the form created in the generation of the element's html (getHtml(EntitySet, overit.geocall.basic.ui.Window))- Specified by:
buildSetupScriptin interfaceSingleUseComponent- Parameters:
sb- The StringBuilder on which we want to add the script
-
getHtml
Creates a form containing a list of hidden fields that corresponds to the values to pass in the Http POST method; sets the action of the form as the url used to construct the PostUrl object and the method to POST.- Specified by:
getHtmlin interfaceSingleUseComponent- Parameters:
es- TheEntitySetw- TheWindow- Returns:
- THe html of the form element created
-