Class ClientSideElement.ScriptFile

java.lang.Object
org.ametys.core.ui.ClientSideElement.ScriptFile
Enclosing interface:
ClientSideElement

public static class ClientSideElement.ScriptFile extends Object
This class represents a script file
  • Constructor Details

    • ScriptFile

      public ScriptFile(String path)
      Default constructor. Create a new script only defined by its path.
      Parameters:
      path - The script path
    • ScriptFile

      public ScriptFile(String rtl, String path)
      Create a new script file that is not language aware.
      Parameters:
      rtl - The rtl mode. Can be null.
      path - The file path.
    • ScriptFile

      public ScriptFile(Map<String,String> langPaths, String defaultLang)
      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