|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.RichTextEditorController
public class RichTextEditorController
A RichTextEditor controller.
| Field Summary | |
|---|---|
static String |
DEFAULT_PLUGINS
The list of plugins this controller will attempt to load by default if the configuration doesn't specify which plugins to load. |
static String |
DEFAULT_ROOT_UI_EXTENSIONS
The list of default extensions for the rootUI extension point. |
| Constructor Summary | |
|---|---|
RichTextEditorController(RichTextEditor richTextEditor,
Config config,
PluginFactoryManager pfm,
SyntaxValidator syntaxValidator)
Creates a new editor. |
|
| Method Summary | |
|---|---|
boolean |
canUpdate()
|
void |
destroy()
Destroys this editor, unregistering all the listeners and releasing the used memory. |
protected void |
extendRootUI()
Loads the root user interface extensions. |
Config |
getConfigurationSource()
|
RichTextEditor |
getRichTextEditor()
Get the rich text editor. |
protected void |
loadPlugins()
Loads the plugins specified in the configuration. |
protected void |
maybeInitialize()
Initialize the rich text editor if it wasn't already initialized. |
boolean |
onBeforeCommand(CommandManager sender,
Command command,
String param)
|
void |
onCommand(CommandManager sender,
Command command,
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)
|
protected void |
saveRegistration(com.google.gwt.event.shared.HandlerRegistration registration)
Saves a handler registration in order for the handler to be automatically removed when the plug-in is destroyed. |
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 String DEFAULT_PLUGINS
public static final String DEFAULT_ROOT_UI_EXTENSIONS
rootUI extension point.
| Constructor Detail |
|---|
public RichTextEditorController(RichTextEditor richTextEditor,
Config config,
PluginFactoryManager pfm,
SyntaxValidator syntaxValidator)
richTextEditor - the rich text editor to manageconfig - the configuration sourcepfm - the plugin factory manager used to instantiate pluginssyntaxValidator - the object used to assert if a feature must be enabled or disabled in some context| 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,
String param)
onBeforeCommand in interface CommandListenerCommandListener.onBeforeCommand(CommandManager, Command, String)
public void onCommand(CommandManager sender,
Command command,
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)protected void maybeInitialize()
protected void loadPlugins()
protected void extendRootUI()
public void update()
update in interface UpdatableUpdatable.update()public boolean canUpdate()
canUpdate in interface UpdatableUpdatable.canUpdate()public RichTextEditor getRichTextEditor()
public Config getConfigurationSource()
protected void saveRegistration(com.google.gwt.event.shared.HandlerRegistration registration)
registration - the handler registration to be savedpublic void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||