virtual class vaseGui::DefTextAreaModel

sys::Obj
  vaseGui::TextAreaModel
    vaseGui::DefTextAreaModel

@Js

charCount

virtual override Int charCount()

Return the number of characters in the content.

line

virtual override Str line(Int lineIndex)

Return the line at the given zero based line index without delimiters.

lineAtOffset

virtual override Int lineAtOffset(Int offset)

Return the zero based line index at the given character offset.

lineCount

virtual override Int lineCount()

Return the number of lines.

make

new make(Str text)

modify

virtual override Void modify(Int start, Int replaceLen, Str newText)

Replace the text with newText starting at position start for a length of replaceLen. The model implementation must fire the onModify event.

modifyLine

virtual override Void modifyLine(Int lineIndex, Str? line, Bool add)

offsetAtLine

virtual override Int offsetAtLine(Int lineIndex)

Return the character offset of the first character of the given zero based line index.

posAtOffset

virtual override Point posAtOffset(Int offset)

text

virtual override Str text

Get or set the entire text document.