Package jfx.incubator.scene.control.richtext.model
package jfx.incubator.scene.control.richtext.model
Provides common models for
RichTextArea
and
CodeArea
controls.
The RichTextArea
control separates data model from the view by providing the
model
property.
The base class for any data model is
StyledTextModel
.
This abstract class provides no data storage, focusing instead on providing common functionality
to the actual models, such as dealing with styled segments, keeping track of markers, sending events, etc.
This package provides a number of standard models are provided, each designed for a specific use case.
- The
RichTextModel
stores the data in memory, in the form of text segments styled with attributes defined inStyleAttributeMap
class. This is a default model for RichTextArea. - The
BasicTextModel
could be used as a base class for in-memory or virtualized text models based on plain text. This class provides foundation for theCodeTextModel
, which supports styling using a pluggableSyntaxDecorator
. - The abstract
StyledTextModelViewOnlyBase
is a base class for immutable models. This class is used bySimpleViewOnlyStyledModel
which simplifies building of in-memory view-only styled documents.
- Since:
- 24
-
ClassDescriptionA StyledTextModel based on plain text paragraphs.This interface describes the underlying storage mechanism for the BasicTextModel.This content provides in-memory storage in an
ArrayList
ofString
s.Editable plain text model with optional syntax highlighting for use with theCodeArea
control.Contains information aboutStyledTextModel
content change.Facilitates import/export of styled text into/from a StyledTextModel.This partialDataFormatHandler
supports export of styled text in a simple HTML format.Paragraph direction attribute.DataFormatHandler
which operates with plain text.Represents a single immutable paragraph within theStyledModel
.Utility class for building immutableRichParagraph
s.A DataFormatHandler for use with attribute-based rich text models.Editable, in-memoryStyledTextModel
based on a collection of styled segments.ThisDataFormatHandler
provides export/import support for RTF format.A simple, view-only, in-memory, styled text model.Style Attribute provides a way to specify style in the RichTextArea.This immutable object contains a map ofStyleAttribute
s.StyleAttributeMap are immutable, so a Builder is required to create a new instanceThis interface represents a source of styled text segments for the purposes of pasting, importing, or loading from an input stream.Class represents a consumer of styled text segments for the purposes of exporting, copying, or saving to an output stream.Data structure used to modify the styled text model.StyledSegment typeThe base class for styled text models used by theRichTextArea
.Receives information about modifications of the model.The base class for view-onlyStyledTextModel
s.