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.
RichTextModel stores the data in memory,
in the form of text segments styled with attributes defined in
StyleAttributeMap class.
This is a default model for RichTextArea.
BasicTextModel
could be used as a base class for in-memory or virtualized text models based on plain text.
This class provides foundation for the
CodeTextModel,
which supports styling using a pluggable
SyntaxDecorator.
StyledTextModelViewOnlyBase
is a base class for immutable models. This class is used by
SimpleViewOnlyStyledModel
which simplifies building of in-memory view-only styled documents.
| Modifier and Type | Interface and Description |
|---|---|
| public interface | StyledInput
This interface represents a source of styled text segments for the purposes of pasting, importing, or loading from an input stream. |
| public interface | StyledOutput
Class represents a consumer of styled text segments for the purposes of exporting, copying, or saving to an output stream. |
| Modifier and Type | Class and Description |
|---|---|
| public class | BasicTextModel
A StyledTextModel based on plain text paragraphs. |
| public class | CodeTextModel
Editable plain text model with optional syntax highlighting for use with the
|
| public abstract class | ContentChange
Contains information about |
| public abstract class | DataFormatHandler
Facilitates import/export of styled text into/from a StyledTextModel. |
| public class | EmbeddedImage
An attribute which allows an image to be embedded into the |
| public class | FileListFormatHandler
Facilitates importing of file lists into the RichTextModel. |
| public class | HtmlExportFormatHandler
This partial |
| public class | PlainTextFormatHandler
|
| public abstract class | RichParagraph
Represents a single immutable paragraph within the |
| public class | RichTextFormatHandler
A DataFormatHandler for use with attribute-based rich text models. |
| public class | RichTextModel
Editable, in-memory |
| public class | RtfFormatHandler
This |
| public class | SimpleViewOnlyStyledModel
A simple, view-only, in-memory, styled text model. |
| public abstract class | StyleAttribute<
the attribute value type T>Style Attribute provides a way to specify style in the RichTextArea. |
| public class | StyleAttributeMap
This immutable object contains a map of |
| public abstract class | StyledSegment
Data structure used to modify the styled text model. |
| public abstract class | StyledTextModel
The base class for styled text models used by the
|
| public abstract class | StyledTextModelViewOnlyBase
The base class for view-only |
| public class |
| Modifier and Type | Enum and Description |
|---|---|
| public enum | ParagraphDirection
Paragraph direction attribute. |