|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.editor.WysiwygEditor
public class WysiwygEditor
The controller part of the WYSIWYG editor.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SYNTAX
The default storage syntax. |
protected static int |
SOURCE_TAB_INDEX
Source tab index in the TabPanel. |
protected static int |
WYSIWYG_TAB_INDEX
WYWISYWG tab index in the TabPanel. |
| Constructor Summary | |
|---|---|
WysiwygEditor(Config config,
SyntaxValidatorManager svm,
PluginFactoryManager pfm)
Creates a new WYSIWYG editor. |
|
| Method Summary | |
|---|---|
boolean |
canUpdate()
|
void |
destroy()
Destroys this WYSIWYG editor, unregistering all the listeners and releasing the used memory. |
Config |
getConfig()
|
PlainTextEditor |
getPlainTextEditor()
Get the plain text editor. |
RichTextEditor |
getRichTextEditor()
Get the rich 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. |
boolean |
onBeforeCommand(CommandManager sender,
Command command,
java.lang.String param)
|
void |
onCommand(CommandManager sender,
Command command,
java.lang.String param)
|
void |
onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
|
void |
onLoad(com.google.gwt.event.dom.client.LoadEvent event)
|
void |
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
|
void |
setSelectedTab(int index)
Sets the selected tab. |
void |
update()
|
| 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
protected static final int WYSIWYG_TAB_INDEX
protected static final int SOURCE_TAB_INDEX
| Constructor Detail |
|---|
public WysiwygEditor(Config config,
SyntaxValidatorManager svm,
PluginFactoryManager pfm)
config - The configuration object.svm - The syntax validation manager used for enabling or disabling plugin features.pfm - The plugin factory manager used to instantiate plugins.| Method Detail |
|---|
public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
onMouseUp in interface com.google.gwt.event.dom.client.MouseUpHandlerMouseUpHandler.onMouseUp(MouseUpEvent)public void onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent event)
onKeyUp in interface com.google.gwt.event.dom.client.KeyUpHandlerKeyUpHandler.onKeyUp(KeyUpEvent)
public boolean onBeforeCommand(CommandManager sender,
Command command,
java.lang.String param)
onBeforeCommand in interface CommandListenerCommandListener.onBeforeCommand(CommandManager, Command, String)
public void onCommand(CommandManager sender,
Command command,
java.lang.String param)
onCommand in interface CommandListenerCommandListener.onCommand(CommandManager, Command, String)public void onLoad(com.google.gwt.event.dom.client.LoadEvent event)
onLoad in interface com.google.gwt.event.dom.client.LoadHandlerLoadHandler.onLoad(LoadEvent)public void update()
update in interface UpdatableUpdatable.update()public boolean canUpdate()
canUpdate in interface UpdatableUpdatable.canUpdate()public com.google.gwt.user.client.ui.Widget getUI()
public RichTextEditor getRichTextEditor()
public PlainTextEditor getPlainTextEditor()
public Config getConfig()
public int getSelectedTab()
public void setSelectedTab(int index)
index - the tab indexpublic void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||