Package org.ametys.core.ui
Class ClientSideElement.ScriptFile
java.lang.Object
org.ametys.core.ui.ClientSideElement.ScriptFile
- Enclosing interface:
- ClientSideElement
This class represents a script file
-
Constructor Summary
ConstructorDescriptionScriptFile
(String path) Default constructor.ScriptFile
(String rtl, String path) Create a new script file that is not language aware.ScriptFile
(Map<String, String> langPaths, String defaultLang) Create a new script file with a language specific configuration.ScriptFile
(ClientSideElement.ScriptFile scriptFile) Clone a script file -
Method Summary
-
Constructor Details
-
ScriptFile
Default constructor. Create a new script only defined by its path.- Parameters:
path
- The script path
-
ScriptFile
Create a new script file that is not language aware.- Parameters:
rtl
- The rtl mode. Can be null.path
- The file path.
-
ScriptFile
Create a new script file with a language specific configuration.- Parameters:
langPaths
- The list of languages with their paths.defaultLang
- The default language code. Can be null.
-
ScriptFile
Clone a script file- Parameters:
scriptFile
- The script file to clone
-
-
Method Details
-
getRtlMode
Get the rtl mode- Returns:
- the the rtl mode
-
isLangSpecific
Retrieve the language mode- Returns:
- True if the script file is language specific
-
getPath
Get the file path- Returns:
- the path
-
getLangPaths
Get the path mapping by language- Returns:
- the paths by languages
-
getDefaultLang
Get the default language- Returns:
- the the default language
-
toString
-