Top Description Fields Constructors Methods
org.eclipse.swt.custom

public Class TextChangingEvent

extends TypedEvent
Class Inheritance
Imports
org.eclipse.swt.events.*

This event is sent by the StyledTextContent implementor when a change to the text is about to occur.
See Also
Sample code and further information

Field Summary

Modifier and TypeField and Description
public int
newCharCount

Length of text that is going to be inserted

public int
newLineCount

Number of new lines that are going to be inserted

public String
newText

Text that is going to be inserted or empty string if no text will be inserted

public int
replaceCharCount

Length of text that is going to be replaced

public int
replaceLineCount

Number of lines that are going to be replaced

pack-priv static final long
public int
start

Start offset of the text that is going to be replaced

Inherited from org.eclipse.swt.events.TypedEvent:
datadisplaytimewidget

Constructor Summary

AccessConstructor and Description
public
TextChangingEvent(StyledTextContent
the object that will be sending the new TextChangingEvent, cannot be null
source
)

Create the TextChangedEvent to be used by the StyledTextContent implementor.

pack-priv

Method Summary

Inherited from org.eclipse.swt.events.TypedEvent:
toString

Field Detail

newCharCountback to summary
public int newCharCount

Length of text that is going to be inserted

newLineCountback to summary
public int newLineCount

Number of new lines that are going to be inserted

newTextback to summary
public String newText

Text that is going to be inserted or empty string if no text will be inserted

replaceCharCountback to summary
public int replaceCharCount

Length of text that is going to be replaced

replaceLineCountback to summary
public int replaceLineCount

Number of lines that are going to be replaced

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.eclipse.swt.events.TypedEvent.serialVersionUID.

startback to summary
public int start

Start offset of the text that is going to be replaced

Constructor Detail

TextChangingEventback to summary
public TextChangingEvent(StyledTextContent source)

Create the TextChangedEvent to be used by the StyledTextContent implementor.

Parameters
source:StyledTextContent

the object that will be sending the new TextChangingEvent, cannot be null

TextChangingEventback to summary
pack-priv TextChangingEvent(StyledTextContent source, StyledTextEvent e)