|
||||||||||
| 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 java.lang.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 java.lang.String |
MENU_ROLE
The string used to identify the menu bar 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. |
protected void |
fillMenu()
Fills the menu of the editor. |
Config |
getConfigurationSource()
|
RichTextEditor |
getRichTextEditor()
Get the rich text editor. |
protected void |
initTextArea()
Initializes the rich text area. |
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,
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)
|
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 java.lang.String MENU_ROLE
public static final java.lang.String DEFAULT_PLUGINS
| 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,
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)protected void maybeInitialize()
protected void loadPlugins()
protected void extendRootUI()
protected void fillMenu()
protected void initTextArea()
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 | |||||||||