public class WysiwygConfiguration
extends java.lang.Object
Constructor and Description |
---|
WysiwygConfiguration(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> originalOptions) |
Modifier and Type | Method and Description |
---|---|
void |
addOptions(java.util.Map<java.lang.String,java.lang.Object> options)
Copies all given options by appending their values with the old values.
|
void |
addOptionsIfAbsent(WysiwygConfiguration otherConfiguration)
Copies only the options of the given configuration that are not already present in the current configuration.
|
void |
addPluginConfiguration(PluginConfiguration pluginConfiguration)
Add a
PluginConfiguration related to the current WysiwygConfiguration . |
void |
addSuperOptions(WysiwygConfiguration otherConfiguration)
Replace @super token in the options current configuration with the matching options of the given configuration.
|
boolean |
contains(java.lang.String optionName,
java.lang.String value)
Checks if the given option contains the given value.
|
java.lang.String |
getId()
Returns the configuration id.
|
java.lang.Object |
getOption(java.lang.String optionName)
Returns the option value from the given option name.
|
java.lang.String |
getParentId()
Returns the parent configuration id if the current configuration extends another configuration.
|
PluginConfiguration[] |
getPluginConfigurations()
Returns the
PluginConfiguration s related to the current WysiwygConfiguration . |
void |
putOptions(java.util.Map<java.lang.String,java.lang.Object> options)
Copies all given options by replacing the old values.
|
void |
putOptionsIfAbsent(java.util.Map<java.lang.String,java.lang.Object> options)
Copies only options that are not already present
|
void |
setParentId(java.lang.String parentId) |
public WysiwygConfiguration(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> originalOptions)
public java.lang.String getId()
public java.lang.String getParentId()
public void setParentId(java.lang.String parentId)
public java.lang.Object getOption(java.lang.String optionName)
optionName
- name of the optionpublic void putOptions(java.util.Map<java.lang.String,java.lang.Object> options)
options
- to putpublic void putOptionsIfAbsent(java.util.Map<java.lang.String,java.lang.Object> options)
options
- to put is absentpublic void addOptions(java.util.Map<java.lang.String,java.lang.Object> options)
options
- to addpublic void addSuperOptions(WysiwygConfiguration otherConfiguration)
otherConfiguration
- with options to add if there is the @super token in the value of the matching optionpublic void addOptionsIfAbsent(WysiwygConfiguration otherConfiguration)
otherConfiguration
- with options to addpublic void addPluginConfiguration(PluginConfiguration pluginConfiguration)
PluginConfiguration
related to the current WysiwygConfiguration
.pluginConfiguration
- PluginConfiguration
to addpublic PluginConfiguration[] getPluginConfigurations()
PluginConfiguration
s related to the current WysiwygConfiguration
.PluginConfiguration
public boolean contains(java.lang.String optionName, java.lang.String value)
optionName
- name of the optionvalue
- value to searchtrue
the value is found, false
insteadCopyright © 2001-2019 Jalios SA. All Rights Reserved.