| TextPanelEvent is generated by an MTextPanel to notify listeners
of changes. To receive TextPanelEvents from an MTextPanel, clients
must implement TextPanelListener and add themselves to the MTextPanel's
list of listeners.
Some event types are special cases of others. This is intentional - it
allows notifications to be sent less often in certain common cases. For
example, a change in the selection range generates a SELECTION_RANGE_CHANGED
event. This is a very common occurrance, and if many clients listen for this
event, there may be a significant performance penalty. By
listening for a more specialized event (such as SELECTION_EMPTY_CHANGED), clients
can reduce the number of notifications sent.
See Also: MTextPanel See Also: TextPanelListener |