Top Description Constructors Methods
org.fxmisc.richtext.model

public final Class GenericEditableStyledDocument<PS, SEG, S>

extends GenericEditableStyledDocumentBase<PS, SEG, S>
implements EditableStyledDocument<PS, SEG, S>
Class Inheritance
All Implemented Interfaces
org.fxmisc.richtext.model.EditableStyledDocument, org.fxmisc.richtext.model.StyledDocument, org.fxmisc.richtext.model.TwoDimensional
Type Parameters
<PS>
type of style that can be applied to paragraphs (e.g. javafx.scene.text.TextFlow.
<SEG>
type of segment used in Paragraph. Can be only text (plain or styled) or a type that combines text and other javafx.scene.Nodes via Either<String, Node>.
<S>
type of style that can be applied to a segment.

Provides a basic implementation of EditableStyledDocument while still allowing a developer to specify its generics. See SimpleEditableStyledDocument for a version that specifies its segment style to String.

Constructor Summary

AccessConstructor and Description
public
GenericEditableStyledDocument(ReadOnlyStyledDocument<PS, SEG, S> initialContent)

Creates an EditableStyledDocument with the given document as its initial content

public
GenericEditableStyledDocument(Paragraph<PS, SEG, S> initialParagraph)

Creates an EditableStyledDocument with given paragraph as its initial content

public
GenericEditableStyledDocument(PS initialParagraphStyle, S initialStyle, SegmentOps<SEG, S> segmentOps)

Creates an empty EditableStyledDocument

Method Summary

Inherited from org.fxmisc.richtext.model.GenericEditableStyledDocumentBase:
beingUpdatedPropertyconcatgetLengthgetParagraphsgetTextisBeingUpdatedlengthlengthPropertymultiRichChangesoffsetToPositionpositionreplacereplaceMultisetParagraphStylesetStylesetStylesetStylesetStyleSpanssetStyleSpanssnapshotsubSequencetextProperty

Constructor Detail

GenericEditableStyledDocumentback to summary
public GenericEditableStyledDocument(ReadOnlyStyledDocument<PS, SEG, S> initialContent)

Creates an EditableStyledDocument with the given document as its initial content

GenericEditableStyledDocumentback to summary
public GenericEditableStyledDocument(Paragraph<PS, SEG, S> initialParagraph)

Creates an EditableStyledDocument with given paragraph as its initial content

GenericEditableStyledDocumentback to summary
public GenericEditableStyledDocument(PS initialParagraphStyle, S initialStyle, SegmentOps<SEG, S> segmentOps)

Creates an empty EditableStyledDocument