Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.swt.custom
Interface TextChangeListener

All Superinterfaces:
EventListener, org.eclipse.swt.internal.SWTEventListener

public interface TextChangeListener
extends org.eclipse.swt.internal.SWTEventListener

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

textChanging

void textChanging(
TextChangingEvent event)
This method is called when the content is about to be changed. Callers also need to call the textChanged method after the content change has been applied. The widget only updates the screen properly when it receives both events.

Parameters:
event - the text changing event. All event fields need to be set by the sender.
See Also:
TextChangingEvent

textChanged

void textChanged(
TextChangedEvent event)
This method is called when the content has changed. Callers need to have called the textChanging method prior to applying the content change and calling this method. The widget only updates the screen properly when it receives both events.

Parameters:
event - the text changed event

textSet

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()).

Parameters:
event - the text changed event

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire