|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.WysiwygEditorConfig
public class WysiwygEditorConfig
WYSIWYG Editor configuration. Use this class to access the WYSIWYG editor configuration in a strong-typed manner and to cache configuration values.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SYNTAX
The default storage syntax. |
static int |
SOURCE_TAB_INDEX
Source tab index in the TabPanel. |
static int |
WYSIWYG_TAB_INDEX
WYWISYWG tab index in the TabPanel. |
| Constructor Summary | |
|---|---|
WysiwygEditorConfig(Config config)
Creates a new WYSIWYG editor configuration object based on the given configuration source. |
|
| Method Summary | |
|---|---|
Config |
getConfigurationSource()
|
Element |
getHook()
|
java.lang.String |
getInputValue()
|
int |
getSelectedTabIndex()
|
java.lang.String |
getSyntax()
|
java.lang.String |
getTemplateURL()
|
boolean |
isDebugMode()
|
boolean |
isInputConverted()
|
boolean |
isTabbed()
|
void |
onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
|
void |
setInputConverted(boolean inputConverted)
Sets whether the WYSIWYG editor needs to convert its input from source syntax to HTML. |
void |
setSelectedTabIndex(int selectedTabIndex)
Caches the active text area. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_SYNTAX
public static final int WYSIWYG_TAB_INDEX
public static final int SOURCE_TAB_INDEX
| Constructor Detail |
|---|
public WysiwygEditorConfig(Config config)
config - the configuration source| Method Detail |
|---|
public java.lang.String getSyntax()
public boolean isInputConverted()
true if the WYSIWYG editor input value is HTML (no conversion is required), false
otherwise (the input value is in source syntax and needs to be converted to HTML)public void setInputConverted(boolean inputConverted)
inputConverted - true if the WYSIWYG editor doesn't need to convert its input value because it's
HTML, false otherwise (the editor needs to convert the input value from source syntax to HTML)public Element getHook()
public java.lang.String getInputValue()
public boolean isTabbed()
true if the WYSIWYG/Source tabs are displayed, false otherwisepublic int getSelectedTabIndex()
public void setSelectedTabIndex(int selectedTabIndex)
selectedTabIndex - the index of the selected tabpublic java.lang.String getTemplateURL()
public boolean isDebugMode()
true if the WYSIWYG editor is in debug mode, false otherwisepublic Config getConfigurationSource()
public void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
onWindowClosing in interface com.google.gwt.user.client.Window.ClosingHandlerClosingHandler#onWindowClosing(ClosingEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||