|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ckeditor.CKEditorConfig
public class CKEditorConfig
CKEditor configuration class.
| Constructor Summary | |
|---|---|
CKEditorConfig()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addConfigValue(String key,
Boolean value)
Adds a Boolean parameter to the configuration. |
void |
addConfigValue(String key,
List<? extends Object> value)
Adds a List parameter to the configuration. |
void |
addConfigValue(String key,
Map<String,? extends Object> value)
Adds a Map parameter to the configuration. |
void |
addConfigValue(String key,
Number value)
Adds a Number parameter to the configuration. |
void |
addConfigValue(String key,
String value)
Adds a String parameter to the configuration. |
protected Object |
clone()
Override. |
(package private) CKEditorConfig |
configSettings(EventHandler eventHandler)
Configure settings. |
(package private) Object |
getConfigValue(String key)
Gets a configuration value by key. |
(package private) Map<String,Object> |
getConfigValues()
|
boolean |
isEmpty()
Checks if configuration is empty. |
void |
removeConfigValue(String key)
Removes a configuration value by key. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CKEditorConfig()
| Method Detail |
|---|
public void addConfigValue(String key,
Number value)
config.addConfigValue("width", 100);
config.addConfigValue("dialog_backgroundCoverOpacity", 0.7);
key - configuration parameter keyvalue - configuration parameter value.
public void addConfigValue(String key,
String value)
config.addConfigValue("baseHref", "http://www.example.com/path/");
config.addConfigValue("toolbar", "[[ 'Source', '-', 'Bold', 'Italic' ]]");
key - configuration parameter keyvalue - configuration parameter value.
public void addConfigValue(String key,
Map<String,? extends Object> value)
Map<String, Object> map = new HashMap<String, Object>();
map.put("element", "span");
map.put("styles", "{'background-color' : '#(color)'}");
config.addConfigValue("colorButton_backStyle", map);
key - configuration parameter keyvalue - configuration parameter value.
public void addConfigValue(String key,
List<? extends Object> value)
List<List<String>> list = new ArrayList<List<String>>();
List<String> subList = new ArrayList<String>();
subList.add("Source");
subList.add("-");
subList.add("Bold");
subList.add("Italic");
list.add(subList);
config.addConfigValue("toolbar", list);
key - configuration parameter keyvalue - configuration parameter value.
public void addConfigValue(String key,
Boolean value)
config.addConfigValue("autoUpdateElement", true);
key - configuration parameter keyvalue - configuration parameter value.Object getConfigValue(String key)
key - configuration parameter key
Map<String,Object> getConfigValues()
public void removeConfigValue(String key)
config.removeConfigValue("toolbar");
key - configuration parameter key.CKEditorConfig configSettings(EventHandler eventHandler)
eventHandler - events
public boolean isEmpty()
protected Object clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||