com.ibm.richtext.uiimpl
Class CommandMenuItem.UndoRedo

java.lang.Object
  |
  +--com.ibm.richtext.uiimpl.MenuItemSet
        |
        +--com.ibm.richtext.uiimpl.CommandMenuItem
              |
              +--com.ibm.richtext.uiimpl.CommandMenuItem.UndoRedo
All Implemented Interfaces:
TextPanelListener
Enclosing class:
CommandMenuItem

public static final class CommandMenuItem.UndoRedo
extends CommandMenuItem


Inner classes inherited from class com.ibm.richtext.uiimpl.CommandMenuItem
CommandMenuItem.CutCopyClear, CommandMenuItem.Paste, CommandMenuItem.SelectAll, CommandMenuItem.UndoRedo
 
Field Summary
static boolean REDO
           
static boolean UNDO
           
 
Fields inherited from class com.ibm.richtext.uiimpl.MenuItemSet
CHARACTER, PARAGRAPH
 
Fields inherited from interface com.ibm.richtext.textpanel.TextPanelListener
COPYRIGHT
 
Constructor Summary
CommandMenuItem.UndoRedo(MenuData menuData, boolean kind)
           
 
Method Summary
protected  boolean isEnabled()
           
protected  void performAction()
           
 boolean respondsToEventType(int type)
          Return true if listener needs to be notified of the given event type.
 
Methods inherited from class com.ibm.richtext.uiimpl.CommandMenuItem
textEventOccurred, textPanelChanged
 
Methods inherited from class com.ibm.richtext.uiimpl.MenuItemSet
getTextPanel, setTextPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNDO

public static final boolean UNDO

REDO

public static final boolean REDO
Constructor Detail

CommandMenuItem.UndoRedo

public CommandMenuItem.UndoRedo(MenuData menuData,
                                boolean kind)
Method Detail

isEnabled

protected boolean isEnabled()
Overrides:
isEnabled in class CommandMenuItem

respondsToEventType

public boolean respondsToEventType(int type)
Description copied from interface: TextPanelListener
Return true if listener needs to be notified of the given event type. This allows a text panel to avoid sending events to uninterested parties.
Overrides:
respondsToEventType in class MenuItemSet
Following copied from interface: com.ibm.richtext.textpanel.TextPanelListener
Parameters:
type - an event ID from TextPanelEvent
Returns:
true if this listener needs to be notified of events of the given type

performAction

protected void performAction()
Overrides:
performAction in class CommandMenuItem


Copyright (c) 2001 IBM Corporation and others.