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
RichTextModelstores the data in memory, in the form of text segments styled with attributes defined inStyleAttributeMapclass. This is a default model for RichTextArea. - The
BasicTextModelcould 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
StyledTextModelViewOnlyBaseis a base class for immutable models. This class is used bySimpleViewOnlyStyledModelwhich 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
ArrayListofStrings.Editable plain text model with optional syntax highlighting for use with theCodeAreacontrol.Contains information aboutStyledTextModelcontent change.Facilitates import/export of styled text into/from a StyledTextModel.This partialDataFormatHandlersupports export of styled text in a simple HTML format.Paragraph direction attribute.DataFormatHandlerwhich operates with plain text.Represents a single immutable paragraph within theStyledModel.Utility class for building immutableRichParagraphs.A DataFormatHandler for use with attribute-based rich text models.Editable, in-memoryStyledTextModelbased on a collection of styled segments.ThisDataFormatHandlerprovides 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 ofStyleAttributes.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-onlyStyledTextModels.