public class WysiwygConfiguration
extends java.lang.Object
Constructor and Description |
---|
WysiwygConfiguration(java.lang.String id) |
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 . |
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) |
java.lang.String |
toJSString()
Returns a String representing the object in JavaScript format.
|
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 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
insteadpublic java.lang.String toJSString() throws javax.script.ScriptException, java.io.IOException
javax.script.ScriptException
- thrown when an error occurred while executing the JavaScript to convert JSON to a valid JavaScript Objectjava.io.IOException
- thrown when an error occurred while serializing the configuration to a valid JSONCopyright © 2001-2017 Jalios SA. All Rights Reserved.