class fwt::TextChange
sys::Obj fwt::TextChange
@Js
Wraps up information regarding a text modification.
- newNumNewlines
-
Int? newNumNewlines
Number of newlines in
newText
or zero if no newlines. This field will lazily be calcualted if null. - newText
-
Str? newText
New text inserted
- oldNumNewlines
-
Int? oldNumNewlines
Number of newlines in
oldText
or zero if no newlines This field will lazily be calcualted if null. - oldText
-
Str? oldText
Old text which was replaced
- redo
-
Void redo(TextWidget widget)
Redo this modification on the given widget.
- repaintLen
-
Int? repaintLen
Zero based offset of where repaint should end, or if null then
newText.size
is assumed. - repaintStart
-
Int? repaintStart
Zero based offset of where repaint should start, or if null then
startOffset
is assumed. - startLine
-
Int startLine
Zero based line number of modification
- startOffset
-
Int startOffset
Zero based offset of modification
- toStr
-
virtual override Str toStr()
- undo
-
Void undo(TextWidget widget)
Undo this modification on the given widget.