Package com.jalios.jcms.wysiwyg
Class WysiwygConfiguration
java.lang.Object
com.jalios.jcms.wysiwyg.WysiwygConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOptions(Map<String, Object> options) Copies all given options by appending their values with the old values.voidaddOptionsIfAbsent(WysiwygConfiguration otherConfiguration) Copies only the options of the given configuration that are not already present in the current configuration.voidaddPluginConfiguration(PluginConfiguration pluginConfiguration) Add aPluginConfigurationrelated to the currentWysiwygConfiguration.voidaddSuperOptions(WysiwygConfiguration otherConfiguration) Replace @super token in the options current configuration with the matching options of the given configuration.booleanChecks if the given option contains the given value.getId()Returns the configuration id.Returns the option value from the given option name.Returns the parent configuration id if the current configuration extends another configuration.Returns thePluginConfigurations related to the currentWysiwygConfiguration.voidputOptions(Map<String, Object> options) Copies all given options by replacing the old values.voidputOptionsIfAbsent(Map<String, Object> options) Copies only options that are not already presentvoidremovePluginConfiguration(PluginConfiguration pluginConfiguration) Remove aPluginConfigurationrelated to the currentWysiwygConfiguration.voidsetParentId(String parentId)
-
Constructor Details
-
WysiwygConfiguration
-
-
Method Details
-
getId
Returns the configuration id.- Returns:
- String representing the configuration id
-
getParentId
Returns the parent configuration id if the current configuration extends another configuration.- Returns:
- String representing the parent configuration id
-
setParentId
-
getOption
Returns the option value from the given option name.- Parameters:
optionName- name of the option- Returns:
- Object representing the option value
-
putOptions
Copies all given options by replacing the old values.- Parameters:
options- to put
-
putOptionsIfAbsent
Copies only options that are not already present- Parameters:
options- to put is absent
-
addOptions
Copies all given options by appending their values with the old values.- Parameters:
options- to add
-
addSuperOptions
Replace @super token in the options current configuration with the matching options of the given configuration.- Parameters:
otherConfiguration- with options to add if there is the @super token in the value of the matching option
-
addOptionsIfAbsent
Copies only the options of the given configuration that are not already present in the current configuration.- Parameters:
otherConfiguration- with options to add
-
addPluginConfiguration
Add aPluginConfigurationrelated to the currentWysiwygConfiguration. If a configuration of the same id exists, it is replaced with the specified one.- Parameters:
pluginConfiguration-PluginConfigurationto add
-
removePluginConfiguration
Remove aPluginConfigurationrelated to the currentWysiwygConfiguration.- Parameters:
pluginConfiguration-PluginConfigurationto remove
-
getPluginConfigurations
Returns thePluginConfigurations related to the currentWysiwygConfiguration.- Returns:
- Array of
PluginConfiguration
-
contains
Checks if the given option contains the given value.- Parameters:
optionName- name of the optionvalue- value to search- Returns:
truethe value is found,falseinstead
-