classnetColarUI::BasicRichTextModel

sys::Obj
  fwt::RichTextModel
    netColarUI::BasicRichTextModel

Basic RichTextModel for styling a text It support s "plain" text wit lines separated by \n The whole text is style with ONE style

charCount

virtual override Int charCount()

line

virtual override Str line(Int lineIndex)

lineAtOffset

virtual override Int lineAtOffset(Int offset)

lineCount

virtual override Int lineCount()

lineStyling

virtual override Obj[]? lineStyling(Int lineIndex)

longestLineWidth

Int longestLineWidth()

Width in pixels of the longest line of this text

modify

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

offsetAtLine

virtual override Int offsetAtLine(Int lineIndex)

style

RichTextStyle style := ...

Style

text

virtual override Str text := ""

the text

textRange

virtual override Str textRange(Int start, Int len)