com.ibm.richtext.uiimpl
Class CommandMenuItem

java.lang.Object
  |
  +--com.ibm.richtext.uiimpl.MenuItemSet
        |
        +--com.ibm.richtext.uiimpl.CommandMenuItem
All Implemented Interfaces:
TextPanelListener
Direct Known Subclasses:
CommandMenuItem.CutCopyClear, CommandMenuItem.Paste, CommandMenuItem.SelectAll, CommandMenuItem.UndoRedo, DialogItem

public abstract class CommandMenuItem
extends MenuItemSet


Inner Class Summary
static class CommandMenuItem.CutCopyClear
           
static class CommandMenuItem.Paste
           
static class CommandMenuItem.SelectAll
           
static class CommandMenuItem.UndoRedo
           
 
Fields inherited from class com.ibm.richtext.uiimpl.MenuItemSet
CHARACTER, PARAGRAPH
 
Fields inherited from interface com.ibm.richtext.textpanel.TextPanelListener
COPYRIGHT
 
Constructor Summary
protected CommandMenuItem(MenuData data)
           
protected CommandMenuItem(MenuData data, boolean enableByDefault)
           
 
Method Summary
protected abstract  boolean isEnabled()
           
protected abstract  void performAction()
           
 void textEventOccurred(TextPanelEvent event)
          Notify listener of an MTextPanel change.
protected  void textPanelChanged()
           
 
Methods inherited from class com.ibm.richtext.uiimpl.MenuItemSet
getTextPanel, respondsToEventType, setTextPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandMenuItem

protected CommandMenuItem(MenuData data)

CommandMenuItem

protected CommandMenuItem(MenuData data,
                          boolean enableByDefault)
Method Detail

isEnabled

protected abstract boolean isEnabled()

performAction

protected abstract void performAction()

textPanelChanged

protected void textPanelChanged()
Overrides:
textPanelChanged in class MenuItemSet

textEventOccurred

public final void textEventOccurred(TextPanelEvent event)
Description copied from interface: TextPanelListener
Notify listener of an MTextPanel change.
Overrides:
textEventOccurred in class MenuItemSet
Following copied from interface: com.ibm.richtext.textpanel.TextPanelListener
Parameters:
event - a TextPanelEvent indicating what happened


Copyright (c) 2001 IBM Corporation and others.