public static class ClientSideElement.Script extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
_classname
The script class name of the script
|
protected List<ClientSideElement.ScriptFile> |
_cssFiles
The css files of the script (url is relative to webapp context)
|
protected String |
_id
The id associated with this script
|
protected Map<String,Object> |
_parameters
The parameters objects of the script
|
protected List<ClientSideElement.ScriptFile> |
_scriptFiles
The script files of the script (url is relative to webapp context)
|
protected String |
_serverId
The server element id for this script
|
Constructor and Description |
---|
Script(ClientSideElement.Script script)
Clone a script
|
Script(String id,
String classname,
List<ClientSideElement.ScriptFile> scriptFiles,
List<ClientSideElement.ScriptFile> cssFiles,
Map<String,Object> parameters)
Creates a script
|
Script(String id,
String serverId,
String classname,
List<ClientSideElement.ScriptFile> scriptFiles,
List<ClientSideElement.ScriptFile> cssFiles,
Map<String,Object> parameters)
Creates a script
|
Modifier and Type | Method and Description |
---|---|
List<ClientSideElement.ScriptFile> |
getCSSFiles()
The list of css files needed to correctly display the script.
|
String |
getId()
The script id.
|
Map<String,Object> |
getParameters()
This method returns the parameters initially given to the control script class.
|
String |
getScriptClassname()
The script classname.
|
List<ClientSideElement.ScriptFile> |
getScriptFiles()
The list of files needed to execute the classname.
|
String |
getServerId()
The id server-side associated with this script
|
protected String _classname
protected List<ClientSideElement.ScriptFile> _scriptFiles
protected List<ClientSideElement.ScriptFile> _cssFiles
protected Map<String,Object> _parameters
public Script(String id, String classname, List<ClientSideElement.ScriptFile> scriptFiles, List<ClientSideElement.ScriptFile> cssFiles, Map<String,Object> parameters)
id
- The script idclassname
- The script classname. Can not be null nor empty.scriptFiles
- The list of files needed to execute the classname. Must not be null.cssFiles
- The list of css files needed to correctly display the script. Must not be null.parameters
- The parameters associated with this Script.public Script(String id, String serverId, String classname, List<ClientSideElement.ScriptFile> scriptFiles, List<ClientSideElement.ScriptFile> cssFiles, Map<String,Object> parameters)
id
- The script idserverId
- The script server idclassname
- The script classname. Can not be null nor empty.scriptFiles
- The list of files needed to execute the classname. Must not be null.cssFiles
- The list of css files needed to correctly display the script. Must not be null.parameters
- The parameters associated with this Script.public Script(ClientSideElement.Script script)
script
- The script to clonepublic String getServerId()
public String getScriptClassname()
public List<ClientSideElement.ScriptFile> getScriptFiles()
public List<ClientSideElement.ScriptFile> getCSSFiles()
public Map<String,Object> getParameters()