com.ibm.richtext.uiimpl
Class DialogItem

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

public final class DialogItem
extends CommandMenuItem


Inner Class Summary
static class DialogItem.DialogFactory
           
 
Inner classes inherited from class com.ibm.richtext.uiimpl.CommandMenuItem
CommandMenuItem.CutCopyClear, CommandMenuItem.Paste, CommandMenuItem.SelectAll, 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
DialogItem(MenuData menuData, DialogItem.DialogFactory dialogFactory)
           
 
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.
protected  void textPanelChanged()
           
 
Methods inherited from class com.ibm.richtext.uiimpl.CommandMenuItem
textEventOccurred
 
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
 

Constructor Detail

DialogItem

public DialogItem(MenuData menuData,
                  DialogItem.DialogFactory dialogFactory)
Method Detail

textPanelChanged

protected void textPanelChanged()
Overrides:
textPanelChanged in class CommandMenuItem

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.