org.xwiki.gwt.wysiwyg.client.plugin.readonly
Class ReadOnlyPlugin

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
      extended by org.xwiki.gwt.wysiwyg.client.plugin.readonly.ReadOnlyPlugin
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, PasteHandler, CommandListener, Plugin

public class ReadOnlyPlugin
extends org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
implements CommandListener, PasteHandler

Controls the user interaction with read-only regions within the rich text area content. These read-only regions are marked using the readOnly CSS class.

Version:
$Id: 0e4bc2fb31492283be9d9a3640acc5233197d13c $

Constructor Summary
ReadOnlyPlugin()
           
 
Method Summary
 void destroy()
          
 void init(RichTextArea textArea, Config config)
          
 boolean onBeforeCommand(CommandManager sender, Command command, String param)
          
 void onCommand(CommandManager sender, Command command, String param)
          
 void onPaste(PasteEvent event)
          
 
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
 

Constructor Detail

ReadOnlyPlugin

public ReadOnlyPlugin()
Method Detail

init

public void init(RichTextArea textArea,
                 Config config)

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

destroy

public void destroy()

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,
                               String param)

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

onCommand

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

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

onPaste

public void onPaste(PasteEvent event)

Specified by:
onPaste in interface PasteHandler
See Also:
PasteHandler.onPaste(PasteEvent)


Copyright © 2004-2012 XWiki. All Rights Reserved.