|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The StyledText widget implements this listener to receive notifications when changes to the model occur. It is not intended to be implemented by clients or by implementors of StyledTextContent. Clients should listen to the ModifyEvent or ExtendedModifyEvent that is sent by the StyledText widget to receive text change notifications. Implementors of StyledTextContent should call the textChanging and textChanged methods when text changes occur as described below. If the entire text is replaced the textSet method should be called instead.
Method Summary | |
void |
textChanged(TextChangedEvent event)
This method is called when the content has changed. |
void |
textChanging(TextChangingEvent event)
This method is called when the content is about to be changed. |
void |
textSet(TextChangedEvent event)
This method is called instead of the textChanging/textChanged combination when the entire old content has been replaced (e.g., by a call to StyledTextContent.setText()). |
Method Detail |
public void textChanging(TextChangingEvent event)
event
- the text changing event. All event fields need
to be set by the sender.TextChangingEvent
public void textChanged(TextChangedEvent event)
event
- the text changed eventpublic void textSet(TextChangedEvent event)
event
- the text changed event
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |