com.ibm.richtext.uiimpl
Class MenuItemSet

java.lang.Object
  |
  +--com.ibm.richtext.uiimpl.MenuItemSet
All Implemented Interfaces:
TextPanelListener
Direct Known Subclasses:
ChoiceMenuItemSet, CommandMenuItem, SingleCheckMenuItem

public abstract class MenuItemSet
extends java.lang.Object
implements TextPanelListener


Field Summary
static boolean CHARACTER
           
static boolean PARAGRAPH
           
 
Fields inherited from interface com.ibm.richtext.textpanel.TextPanelListener
COPYRIGHT
 
Constructor Summary
MenuItemSet()
           
 
Method Summary
 MTextPanel getTextPanel()
           
abstract  boolean respondsToEventType(int type)
          Return true if listener needs to be notified of the given event type.
 void setTextPanel(MTextPanel textPanel)
           
abstract  void textEventOccurred(TextPanelEvent event)
          Notify listener of an MTextPanel change.
protected  void textPanelChanged()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHARACTER

public static final boolean CHARACTER

PARAGRAPH

public static final boolean PARAGRAPH
Constructor Detail

MenuItemSet

public MenuItemSet()
Method Detail

textEventOccurred

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

respondsToEventType

public abstract 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.
Specified by:
respondsToEventType in interface TextPanelListener
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

setTextPanel

public final void setTextPanel(MTextPanel textPanel)

getTextPanel

public final MTextPanel getTextPanel()

textPanelChanged

protected void textPanelChanged()


Copyright (c) 2001 IBM Corporation and others.