public class TextChangingEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
newCharCount
The new char count
|
int |
newLineCount
The new line count
|
java.lang.String |
newText
The new text
|
int |
offset
The offset
|
int |
replaceCharCount
The number of replaced chars
|
int |
replaceLineCount
The number of replaced lines
|
StyledTextContent |
source
The source
|
Modifier and Type | Method and Description |
---|---|
static TextChangingEvent |
textChanging(StyledTextContent source,
int offset,
int replaceCharCount,
int replaceLineCount,
java.lang.String newText,
int newCharCount,
int newLineCount)
Create a new event
|
public final StyledTextContent source
public int offset
public int replaceCharCount
public final int replaceLineCount
public final java.lang.String newText
public final int newCharCount
public final int newLineCount
public static TextChangingEvent textChanging(StyledTextContent source, int offset, int replaceCharCount, int replaceLineCount, java.lang.String newText, int newCharCount, int newLineCount)
source
- the sourceoffset
- the offsetreplaceCharCount
- the number of replaced charsreplaceLineCount
- the number of replaced linesnewText
- the new textnewCharCount
- the new char countnewLineCount
- the new line count