Package overit.geocall.ui
Class JSCommand
java.lang.Object
overit.geocall.ui.JSCommand
- All Implemented Interfaces:
SingleUseComponent
This class implements the
SingleUseComponent interface, and represents a JavaScript command that can be added to the
set of scripts (buildSetupScript(java.lang.StringBuilder)) and executed each time it is requested.-
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.ElementThe html of this object isnull
-
Field Details
-
_js
-
-
Constructor Details
-
JSCommand
Creates a new JSCommand object- Parameters:
js- The string that defines the JavaScript command to execute
-
-
Method Details
-
getHtml
The html of this object isnull- Specified by:
getHtmlin interfaceSingleUseComponent- Parameters:
es- TheEntitySetto which the element belongsw- TheWindow- Returns:
null
-
buildSetupScript
Every component can add a script to the StringBuilder, script executed when the component is created. The JSCommand add the JavaScript string passed as parameter in the constructor (JSCommand(java.lang.String)), to the global StringBuilder- Specified by:
buildSetupScriptin interfaceSingleUseComponent- Parameters:
sb- The StringBuilder on which we want to add the script
-