com.ibm.richtext.textpanel
Interface TextPanelListener


public interface TextPanelListener

This interface is implemented by classes which receive change notifications from an MTextPanel.

See Also:
MTextPanel, TextPanelEvent

Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 boolean respondsToEventType(int type)
          Return true if listener needs to be notified of the given event type.
 void textEventOccurred(TextPanelEvent event)
          Notify listener of an MTextPanel change.
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Method Detail

textEventOccurred

public void textEventOccurred(TextPanelEvent event)
Notify listener of an MTextPanel change.
Parameters:
event - a TextPanelEvent indicating what happened

respondsToEventType

public boolean respondsToEventType(int type)
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.
Parameters:
type - an event ID from TextPanelEvent
Returns:
true if this listener needs to be notified of events of the given type


Copyright (c) 1998-2000 IBM Corporation and others.