com.xpn.xwiki.wysiwyg.client.plugin.embed
Class EmbedPlugin

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

public class EmbedPlugin
extends com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
implements CommandListener, InnerHTMLListener

Handles objects embedded in the rich text area.

Version:
$Id: EmbedPlugin.java 25043 2009-11-12 19:22:29Z 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 com.xpn.xwiki.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 com.xpn.xwiki.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 com.xpn.xwiki.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.