|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.RichTextEditorController
org.xwiki.gwt.wysiwyg.client.WysiwygEditor
public class WysiwygEditor
A what-you-see-is-what-you-get rich text editor.
| Field Summary |
|---|
| Fields inherited from class org.xwiki.gwt.wysiwyg.client.RichTextEditorController |
|---|
DEFAULT_PLUGINS, MENU_ROLE |
| Constructor Summary | |
|---|---|
WysiwygEditor(Config config,
SyntaxValidatorManager svm,
PluginFactoryManager pfm)
Creates a new WYSIWYG editor. |
|
WysiwygEditor(WysiwygEditorConfig config,
SyntaxValidatorManager svm,
PluginFactoryManager pfm)
Creates a new WYSIWYG editor. |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys this editor, unregistering all the listeners and releasing the used memory. |
WysiwygEditorConfig |
getConfig()
|
PlainTextEditor |
getPlainTextEditor()
Get the plain text editor. |
int |
getSelectedTab()
|
com.google.gwt.user.client.ui.Widget |
getUI()
In a Model-View-Controller architecture the UI represents the View component, while this class represents the Controller. |
protected void |
maybeInitializeRichTextEditor()
Initializes the rich text editor if it wasn't already initialized. |
void |
onLoad(com.google.gwt.event.dom.client.LoadEvent event)
|
void |
setSelectedTab(int index)
Sets the selected tab. |
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.RichTextEditorController |
|---|
canUpdate, extendRootUI, fillMenu, getConfigurationSource, getRichTextEditor, initTextArea, loadPlugins, maybeInitialize, onBeforeCommand, onCommand, onKeyUp, onMouseUp, saveRegistration, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WysiwygEditor(Config config,
SyntaxValidatorManager svm,
PluginFactoryManager pfm)
config - the configuration sourcesvm - the syntax validation manager used for enabling or disabling plugin featurespfm - the plugin factory manager used to instantiate plugins
public WysiwygEditor(WysiwygEditorConfig config,
SyntaxValidatorManager svm,
PluginFactoryManager pfm)
config - the configuration objectsvm - the syntax validation manager used for enabling or disabling plugin featurespfm - the plugin factory manager used to instantiate plugins| Method Detail |
|---|
public void onLoad(com.google.gwt.event.dom.client.LoadEvent event)
onLoad in interface com.google.gwt.event.dom.client.LoadHandleronLoad in class RichTextEditorControllerRichTextEditorController.onLoad(LoadEvent)protected void maybeInitializeRichTextEditor()
public com.google.gwt.user.client.ui.Widget getUI()
public PlainTextEditor getPlainTextEditor()
null if it does not existpublic int getSelectedTab()
public void setSelectedTab(int index)
index - the tab indexpublic WysiwygEditorConfig getConfig()
public void destroy()
destroy in class RichTextEditorControllerRichTextEditorController.destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||