Top Description Fields Constructors Methods
org.fxmisc.richtext

public Class StyledTextArea<PS, S>

extends GenericStyledArea<PS, String, S>
Class Inheritance
Known Direct Subclasses
org.fxmisc.richtext.StyledTextField, org.fxmisc.richtext.InlineCssTextArea, org.fxmisc.richtext.StyleClassedTextArea
Type Parameters
<PS>
type of paragraph style
<S>
type of style that can be applied to text.
Imports
java.util.function.BiConsumer, javafx.beans.NamedArg, javafx.geometry.VPos, javafx.scene.Node, javafx.scene.text.TextFlow, org.fxmisc.richtext.model.EditableStyledDocument, .SegmentOps, .SimpleEditableStyledDocument, .StyledSegment, .TextOps

A GenericStyledArea whose segment generic has been specified to be a String. How the text will be styled is not yet specified in this class, but use StyleClassedTextArea for a style class approach to styling the text and InlineCssTextArea for an inline css approach to styling the text.

Field Summary

Inherited from org.fxmisc.richtext.GenericStyledArea:
EMPTY_RANGEfoldCheck

Constructor Summary

AccessConstructor and Description
public
StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle, EditableStyledDocument<PS, String, S> document, TextOps<String, S> segmentOps, boolean preserveStyle)

public
StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle, EditableStyledDocument<PS, String, S> document, boolean preserveStyle)

public
StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle, EditableStyledDocument<PS, String, S> document)

public
StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle, boolean preserveStyle)

public
StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle)

Method Summary

Modifier and TypeMethod and Description
public static <S> Node
createStyledTextNode(StyledSegment<String, S> seg, BiConsumer<? super TextExt, S> applyStyle)

Creates a TextExt node using the given styled text.

public static <S> Node
createStyledTextNode(String text, S style, BiConsumer<? super TextExt, S> applyStyle)

Creates a TextExt node using the given styled text.

Inherited from org.fxmisc.richtext.GenericStyledArea:
addCaretaddSelectionallParToVisibleParIndexautoCaretBlinkautoHeightPropertyautoScrollOnDragDesiredPropertybeingUpdatedPropertyclearTargetCaretOffsetcomputePrefHeightconfigurePlaceholdercontextMenuObjectPropertycontextMenuXOffsetPropertycontextMenuYOffsetPropertycreateMultiChangecreateMultiChangecurrentLinedisplaceCaretdisposeeditablePropertyestimatedScrollXPropertyestimatedScrollYPropertyfoldfoldParagraphsfoldSelectedParagraphsgetAbsolutePositiongetApplyParagraphStylegetCaretBoundsOnScreengetCaretOffsetXgetCaretSelectionBindgetCharacterBoundsOnScreengetClassCssMetaDatagetContentgetContextMenugetContextMenuXOffsetgetContextMenuYOffsetgetCssMetaDatagetCurrentLineEndInParargraphgetCurrentLineStartInParargraphgetDocumentgetInitialParagraphStylegetInitialTextStylegetLocalegetOnInsideSelectionMousePressReleasedgetOnNewSelectionDragFinishedgetOnOutsideSelectionMousePressedgetOnSelectionDroppedgetParagraphBoundsOnScreengetParagraphGraphicgetParagraphInsertionStylegetParagraphLinesCountgetParagraphsgetParagraphSelectiongetParagraphStyleForInsertionAtgetPlaceholdergetSegOpsgetSelectionBoundsOnScreengetStyleAtPositiongetStyleAtPositiongetStyleCodecsgetStyleOfChargetStyleOfChargetStyleRangeAtPositiongetStyleRangeAtPositiongetStyleSpansgetStyleSpansgetStyleSpansgetTargetCaretOffsetgetTextgetTextgetTextgetTextInsertionStylegetTextStyleForInsertionAtgetUndoManagergetViewportHeightgetVisibleParagraphBoundsOnScreengetVisibleParagraphshandleInputMethodEventhithithitisAutoHeightisAutoScrollOnDragDesiredisContextMenuPresentisEditableisLineHighlighterOnisOverwriteModeisPreserveStyleisWrapTextlayoutChildrenlengthPropertylineEndlineIndexlineStartmouseOverTextDelayPropertymultiPlainChangesmultiRichChangesnextLinenextPageoffsetToPositiononInsideSelectionMousePressReleasedPropertyonNewSelectionDragFinishedPropertyonNewSelectionDragPropertyonOutsideSelectionMousePressedPropertyonSelectionDragPropertyonSelectionDroppedPropertyoverwriteModePropertyparagraphGraphicFactoryPropertyplaceholderPropertyplainTextChangespositionprevLineprevPagerecreateParagraphGraphicremoveCaretremoveSelectionreplacereplacereplaceMultireplaceTextrequestFollowCaretrichChangesscrollByscrollXByscrollXToPixelscrollYByscrollYToPixelsetAutoHeightsetAutoScrollOnDragDesiredsetContextMenusetContextMenuXOffsetsetContextMenuYOffsetsetEditablesetLineHighlighterFillsetLineHighlighterOnsetLocalesetOnInsideSelectionMousePressReleasedsetOnNewSelectionDragFinishedsetOnOutsideSelectionMousePressedsetOnSelectionDroppedsetParagraphInsertionStylesetParagraphStylesetPlaceholdersetPlaceholdersetStylesetStylesetStylesetStyleCodecssetStyleSpanssetStyleSpanssetTextInsertionStylesetUndoManagersetWrapTextshowCaretAtBottomshowCaretAtTopshowParagraphAtBottomshowParagraphAtCentershowParagraphAtTopshowParagraphInViewportshowParagraphRegionsubDocumentsubDocumenttextPropertytotalHeightEstimatePropertytotalWidthEstimatePropertyunfoldParagraphsuseInitialStyleForInsertionPropertyviewportDirtyEventsvisibleParToAllParIndexwrapTextProperty

Constructor Detail

StyledTextAreaback to summary
public StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle, EditableStyledDocument<PS, String, S> document, TextOps<String, S> segmentOps, boolean preserveStyle)
StyledTextAreaback to summary
public StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle, EditableStyledDocument<PS, String, S> document, boolean preserveStyle)
StyledTextAreaback to summary
public StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle, EditableStyledDocument<PS, String, S> document)
StyledTextAreaback to summary
public StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle, boolean preserveStyle)
StyledTextAreaback to summary
public StyledTextArea(PS initialParagraphStyle, BiConsumer<TextFlow, PS> applyParagraphStyle, S initialTextStyle, BiConsumer<? super TextExt, S> applyStyle)

Method Detail

createStyledTextNodeback to summary
public static <S> Node createStyledTextNode(StyledSegment<String, S> seg, BiConsumer<? super TextExt, S> applyStyle)

Creates a TextExt node using the given styled text.

createStyledTextNodeback to summary
public static <S> Node createStyledTextNode(String text, S style, BiConsumer<? super TextExt, S> applyStyle)

Creates a TextExt node using the given styled text.