Package com.jalios.jcms.wysiwyg
Class PluginConfiguration
java.lang.Object
com.jalios.jcms.wysiwyg.PluginConfiguration
- All Implemented Interfaces:
Comparable<PluginConfiguration>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(PluginConfiguration other) booleanReturns the Plugin base folder path.getCss()Returns the Plugin CSS path or null if the file doesn't exist.getId()Returns the plugin IDgetLanguagePath(String lang) Returns the JS lang file path from the given language.
If the JS lang file is not found for the given language, it uses the JS lang file with the main language of the site.
If the JS lang file is not found for the main language, it uses the english JS lang.getPath()Returns the JavaScript file path of the plugin.inthashCode()voidinit()toString()
-
Constructor Details
-
PluginConfiguration
-
-
Method Details
-
init
public void init() -
getId
Returns the plugin ID- Returns:
- The plugin ID
-
getPath
Returns the JavaScript file path of the plugin.- Returns:
- The JS file path
-
getBasePath
Returns the Plugin base folder path.- Returns:
- The Plugin base folder path
-
getCss
Returns the Plugin CSS path or null if the file doesn't exist.- Returns:
- The Plugin CSS file path
-
getLanguagePath
Returns the JS lang file path from the given language.
If the JS lang file is not found for the given language, it uses the JS lang file with the main language of the site.
If the JS lang file is not found for the main language, it uses the english JS lang.- Parameters:
lang- language of the JS lang file to find- Returns:
- The JS lang file path
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<PluginConfiguration>
-