org.xwiki.gwt.wysiwyg.client.plugin.embed
Class EmbedPlugin

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
      extended by org.xwiki.gwt.wysiwyg.client.plugin.embed.EmbedPlugin
All Implemented Interfaces:
InnerHTMLListener, CommandListener, Plugin

public class EmbedPlugin
extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
implements CommandListener, InnerHTMLListener

Handles objects embedded in the rich text area.

Version:
$Id: EmbedPlugin.java 26786 2010-02-07 16:46:17Z mflorea $

Field Summary
static Command RESET
          The command that notifies us when the content of the rich text area has been reset.
 
Constructor Summary
EmbedPlugin()
           
 
Method Summary
 void destroy()
          Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor.
 void init(RichTextArea textArea, Config config)
          Initialize the plug-in.
 boolean onBeforeCommand(CommandManager sender, Command command, java.lang.String param)
          
 void onCommand(CommandManager sender, Command command, java.lang.String param)
          
 void onInnerHTMLChange(Element element)
          
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
getConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESET

public static final Command RESET
The command that notifies us when the content of the rich text area has been reset.

Constructor Detail

EmbedPlugin

public EmbedPlugin()
Method Detail

init

public void init(RichTextArea textArea,
                 Config config)
Initialize the plug-in. Plug-ins need to know the text area in order to provide only those feature that are supported.

Specified by:
init in interface Plugin
Overrides:
init in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
Parameters:
textArea - the text area of the editor
config - the configuration object
See Also:
AbstractPlugin.init(RichTextArea, Config)

destroy

public void destroy()
Notifies the plug-in to release its resources before being unloaded from the WYSIWYG editor.

Specified by:
destroy in interface Plugin
Overrides:
destroy in class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
See Also:
AbstractPlugin.destroy()

onBeforeCommand

public boolean onBeforeCommand(CommandManager sender,
                               Command command,
                               java.lang.String param)

Specified by:
onBeforeCommand in interface CommandListener
See Also:
CommandListener.onBeforeCommand(CommandManager, Command, String)

onCommand

public void onCommand(CommandManager sender,
                      Command command,
                      java.lang.String param)

Specified by:
onCommand in interface CommandListener
See Also:
CommandListener.onCommand(CommandManager, Command, String)

onInnerHTMLChange

public void onInnerHTMLChange(Element element)

Specified by:
onInnerHTMLChange in interface InnerHTMLListener
See Also:
InnerHTMLListener.onInnerHTMLChange(org.xwiki.gwt.dom.client.Element)


Copyright © 2004-2010 XWiki. All Rights Reserved.