Package org.ametys.core.ui
Class ClientSideElement.Script
java.lang.Object
org.ametys.core.ui.ClientSideElement.Script
- Enclosing interface:
- ClientSideElement
This class represents a script
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected StringThe script class name of the scriptprotected List<ClientSideElement.ScriptFile>The css files of the script (url is relative to webapp context)protected StringThe id associated with this scriptThe parameters objects of the scriptprotected List<ClientSideElement.ScriptFile>The script files of the script (url is relative to webapp context)protected StringThe server element id for this script
- 
Constructor SummaryConstructorsConstructorDescriptionScript(String id, String serverId, String classname, List<ClientSideElement.ScriptFile> scriptFiles, List<ClientSideElement.ScriptFile> cssFiles, Map<String, Object> parameters) Creates a scriptScript(String id, String classname, List<ClientSideElement.ScriptFile> scriptFiles, List<ClientSideElement.ScriptFile> cssFiles, Map<String, Object> parameters) Creates a scriptScript(ClientSideElement.Script script) Clone a script
- 
Method SummaryModifier and TypeMethodDescriptionThe list of css files needed to correctly display the script.getId()The script id.This method returns the parameters initially given to the control script class.The script classname.The list of files needed to execute the classname.The id server-side associated with this script
- 
Field Details- 
_idThe id associated with this script
- 
_classnameThe script class name of the script
- 
_scriptFilesThe script files of the script (url is relative to webapp context)
- 
_cssFilesThe css files of the script (url is relative to webapp context)
- 
_parametersThe parameters objects of the script
- 
_serverIdThe server element id for this script
 
- 
- 
Constructor Details- 
Scriptpublic Script(String id, String classname, List<ClientSideElement.ScriptFile> scriptFiles, List<ClientSideElement.ScriptFile> cssFiles, Map<String, Object> parameters) Creates a script- Parameters:
- id- The script id
- classname- 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.
 
- 
Scriptpublic Script(String id, String serverId, String classname, List<ClientSideElement.ScriptFile> scriptFiles, List<ClientSideElement.ScriptFile> cssFiles, Map<String, Object> parameters) Creates a script- Parameters:
- id- The script id
- serverId- The script server id
- classname- 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.
 
- 
ScriptClone a script- Parameters:
- script- The script to clone
 
 
- 
- 
Method Details- 
getIdThe script id.- Returns:
- The script id. Can not be null nor empty.
 
- 
getServerIdThe id server-side associated with this script- Returns:
- The server id;
 
- 
getScriptClassnameThe script classname.- Returns:
- The script classname. Can not be null nor empty.
 
- 
getScriptFilesThe list of files needed to execute the classname.- Returns:
- The list of files needed to execute the classname. Must not be null.
 
- 
getCSSFilesThe list of css files needed to correctly display the script.- Returns:
- The list of css files needed to correctly display the script. Must not be null.
 
- 
getParametersThis method returns the parameters initially given to the control script class. Initial parameters must be sufficient to allow the script to render the control without waiting for a refresh by the current parameters.- Returns:
- a map of parameters. Key represents ids of the parameters and values represents its values. Can not be null.
 
 
-