class fwt::TextChange

sys::Obj
  fwt::TextChange

@Js

Source

Wraps up information regarding a text modification.

newNumNewlines

Int? newNumNewlines

Source

Number of newlines in newText or zero if no newlines. This field will lazily be calcualted if null.

newText

Str? newText

Source

New text inserted

oldNumNewlines

Int? oldNumNewlines

Source

Number of newlines in oldText or zero if no newlines This field will lazily be calcualted if null.

oldText

Str? oldText

Source

Old text which was replaced

redo

Void redo(TextWidget widget)

Source

Redo this modification on the given widget.

repaintLen

Int? repaintLen

Source

Zero based offset of where repaint should end, or if null then newText.size is assumed.

repaintStart

Int? repaintStart

Source

Zero based offset of where repaint should start, or if null then startOffset is assumed.

startLine

Int startLine

Source

Zero based line number of modification

startOffset

Int startOffset

Source

Zero based offset of modification

toStr

virtual override Str toStr()

Source

undo

Void undo(TextWidget widget)

Source

Undo this modification on the given widget.