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