com.xpn.xwiki.wysiwyg.client.plugin.internal
Class StatefulPlugin

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
      extended by com.xpn.xwiki.wysiwyg.client.plugin.internal.StatefulPlugin
All Implemented Interfaces:
com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.KeyboardListener, Plugin, CommandListener, DeferredUpdate, java.util.EventListener
Direct Known Subclasses:
FontPlugin, FormatPlugin, JustifyPlugin, ListPlugin, TextPlugin, VerticalAlignPlugin

public abstract class StatefulPlugin
extends AbstractPlugin
implements DeferredUpdate, com.google.gwt.user.client.ui.ClickListener, com.google.gwt.user.client.ui.KeyboardListener, CommandListener

An abstract kind of plug-in that listens to the changes in the state of the editor's text area.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.xpn.xwiki.wysiwyg.client.util.DeferredUpdate
DeferredUpdate.UpdateCommand
 
Field Summary
 
Fields inherited from interface com.google.gwt.user.client.ui.KeyboardListener
KEY_ALT, KEY_BACKSPACE, KEY_CTRL, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RIGHT, KEY_SHIFT, KEY_TAB, KEY_UP, MODIFIER_ALT, MODIFIER_CTRL, MODIFIER_META, MODIFIER_SHIFT
 
Constructor Summary
StatefulPlugin()
           
 
Method Summary
 long getUpdateIndex()
          
 long incUpdateIndex()
          
 void onClick(com.google.gwt.user.client.ui.Widget sender)
          
 void onCommand(CommandManager sender, Command command, java.lang.String param)
          
 void onKeyDown(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          
 void onKeyPress(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          
 void onKeyUp(com.google.gwt.user.client.ui.Widget sender, char keyCode, int modifiers)
          
 
Methods inherited from class com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractPlugin
destroy, getConfig, getTextArea, getUIExtensionList, getUIExtensions, getWysiwyg, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.xpn.xwiki.wysiwyg.client.util.DeferredUpdate
onUpdate
 

Constructor Detail

StatefulPlugin

public StatefulPlugin()
Method Detail

onClick

public void onClick(com.google.gwt.user.client.ui.Widget sender)

Specified by:
onClick in interface com.google.gwt.user.client.ui.ClickListener
See Also:
ClickListener.onClick(Widget)

onKeyDown

public void onKeyDown(com.google.gwt.user.client.ui.Widget sender,
                      char keyCode,
                      int modifiers)

Specified by:
onKeyDown in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyDown(Widget, char, int)

onKeyPress

public void onKeyPress(com.google.gwt.user.client.ui.Widget sender,
                       char keyCode,
                       int modifiers)

Specified by:
onKeyPress in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyPress(Widget, char, int)

onKeyUp

public void onKeyUp(com.google.gwt.user.client.ui.Widget sender,
                    char keyCode,
                    int modifiers)

Specified by:
onKeyUp in interface com.google.gwt.user.client.ui.KeyboardListener
See Also:
KeyboardListener.onKeyUp(Widget, char, int)

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)

getUpdateIndex

public long getUpdateIndex()

Specified by:
getUpdateIndex in interface DeferredUpdate
Returns:
The index of the last update.
See Also:
DeferredUpdate.getUpdateIndex()

incUpdateIndex

public long incUpdateIndex()

Specified by:
incUpdateIndex in interface DeferredUpdate
Returns:
The update index after it was incremented.
See Also:
DeferredUpdate.incUpdateIndex()


Copyright © 2004-2008 XWiki. All Rights Reserved.