class fluxText::Doc

sys::Obj
  fwt::RichTextModel
    fluxText::Doc

Source

Doc is the model for text edited in a TextEditor

charCount

virtual override Int charCount()

Source

dump

Void dump(OutStream out := Env.cur().out())

Source

Debug dump of the document model.

findNext

Int? findNext(Str s, Int offset, Bool matchCase)

Source

Find the specified string in the document starting the search at the document offset and looking forward. Return null is not found. Note we don't currently support searching across multiple lines.

findPrev

Int? findPrev(Str s, Int offset, Bool matchCase)

Source

Find the specified string in the document starting the search at the document offset and looking backward. Return null is not found. Note we don't currently support searching across multiple lines.

line

virtual override Str line(Int lineIndex)

Source

lineAtOffset

virtual override Int lineAtOffset(Int offset)

Source

lineBackground

virtual override Color? lineBackground(Int lineIndex)

Source

lineCount

virtual override Int lineCount()

Source

lineStyling

virtual override Obj[]? lineStyling(Int lineIndex)

Source

make

new make(TextEditorOptions options, SyntaxRules rules)

Source

modify

virtual override Void modify(Int startOffset, Int len, Str newText)

Source

offsetAtLine

virtual override Int offsetAtLine(Int lineIndex)

Source

options

TextEditorOptions options { private set }

Source

Text options for current document

rules

SyntaxRules rules { private set }

Source

Syntax rules for current document

text

virtual override Str text

Source