class fluxText::Doc
sys::Obj fwt::RichTextModel fluxText::Doc
Doc is the model for text edited in a TextEditor
- charCount
-
virtual override Int charCount()
- dump
-
Void dump(OutStream out := Env.cur().out())
Debug dump of the document model.
- findNext
-
Int? findNext(Str s, Int offset, Bool matchCase)
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)
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
- lineAtOffset
- lineBackground
- lineCount
-
virtual override Int lineCount()
- lineStyling
- make
-
new make(TextEditorOptions options, SyntaxRules rules)
- modify
-
virtual override Void modify(Int startOffset, Int len, Str newText)
- offsetAtLine
- options
-
TextEditorOptions options { private set }
Text options for current document
- rules
-
SyntaxRules rules { private set }
Syntax rules for current document
- text
-
virtual override Str text