com.xpn.xwiki.wysiwyg.client.history.internal
Class DefaultHistory

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.history.internal.DefaultHistory
All Implemented Interfaces:
com.google.gwt.user.client.ui.KeyboardListener, History, CommandListener, java.util.EventListener

public class DefaultHistory
extends java.lang.Object
implements History, com.google.gwt.user.client.ui.KeyboardListener, CommandListener


Nested Class Summary
static class DefaultHistory.Entry
           
static class DefaultHistory.KeyboardAction
           
 
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
DefaultHistory(XRichTextArea textArea, int capacity)
           
 
Method Summary
 boolean canRedo()
          
 boolean canUndo()
          
 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)
          
 void redo()
          
 void undo()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHistory

public DefaultHistory(XRichTextArea textArea,
                      int capacity)
Method Detail

canRedo

public boolean canRedo()

Specified by:
canRedo in interface History
See Also:
History.canRedo()

canUndo

public boolean canUndo()

Specified by:
canUndo in interface History
See Also:
History.canUndo()

redo

public void redo()

Specified by:
redo in interface History
See Also:
History.redo()

undo

public void undo()

Specified by:
undo in interface History
See Also:
History.undo()

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)


Copyright © 2004-2008 XWiki. All Rights Reserved.