Top Description Constructors Methods
org.fxmisc.richtext

public Class InlineCssTextArea

extends StyledTextArea<String, String>
Class Inheritance
Imports
javafx.beans.NamedArg, javafx.scene.text.TextFlow, java.util.function.Predicate, .UnaryOperator, org.fxmisc.richtext.model.Codec, .EditableStyledDocument, .ReadOnlyStyledDocument, .SimpleEditableStyledDocument

Text area that uses inline css to define style of text segments and paragraphs.

Constructor Summary

AccessConstructor and Description
public
InlineCssTextArea()

Creates a blank area

public
InlineCssTextArea(EditableStyledDocument<String, String, String> document)

Creates an area that can render and edit another area's EditableStyledDocument or a developer's custom implementation of EditableStyledDocument.

public
InlineCssTextArea(String
Initial text content.
text
)

Creates a text area with initial text content.

Method Summary

Modifier and TypeMethod and Description
public void
foldParagraphs(int startPar, int endPar)

Folds (hides/collapses) paragraphs from startPar to endPar, "into" (i.e. excluding) the first paragraph of the range.

public void
foldSelectedParagraphs()

Folds (hides/collapses) the currently selected paragraphs, "into" (i.e. excluding) the first paragraph of the range.

public void
foldText(int start, int end)

Folds (hides/collapses) paragraphs from character position start to end, "into" (i.e. excluding) the first paragraph of the range.

protected UnaryOperator<String>

Returns:

a UnaryOperator that given a paragraph style, returns a String that includes fold styling.
getAddFoldStyle
()

protected Predicate<String>

Returns:

a Predicate that given a paragraph style, returns true if it includes folding.
getFoldStyleCheck
()

protected UnaryOperator<String>

Returns:

a UnaryOperator that given a paragraph style, returns a String that excludes fold styling.
getRemoveFoldStyle
()

public boolean
isFolded(int paragraph)

public void
unfoldParagraphs(int startingFromPar)

Unfolds paragraphs startingFromPar onwards for the currently folded block.

public void
unfoldText(int startingFromPos)

Unfolds text startingFromPos onwards for the currently folded block.

Inherited from org.fxmisc.richtext.StyledTextArea:
createStyledTextNodecreateStyledTextNode

Constructor Detail

InlineCssTextAreaback to summary
public InlineCssTextArea()

Creates a blank area

InlineCssTextAreaback to summary
public InlineCssTextArea(EditableStyledDocument<String, String, String> document)

Creates an area that can render and edit another area's EditableStyledDocument or a developer's custom implementation of EditableStyledDocument.

InlineCssTextAreaback to summary
public InlineCssTextArea(String text)

Creates a text area with initial text content. Initial caret position is set at the beginning of text content.

Parameters
text:String

Initial text content.

Method Detail

foldParagraphsback to summary
public void foldParagraphs(int startPar, int endPar)

Folds (hides/collapses) paragraphs from startPar to endPar, "into" (i.e. excluding) the first paragraph of the range.

foldSelectedParagraphsback to summary
public void foldSelectedParagraphs()

Folds (hides/collapses) the currently selected paragraphs, "into" (i.e. excluding) the first paragraph of the range.

foldTextback to summary
public void foldText(int start, int end)

Folds (hides/collapses) paragraphs from character position start to end, "into" (i.e. excluding) the first paragraph of the range.

getAddFoldStyleback to summary
protected UnaryOperator<String> getAddFoldStyle()
Returns:UnaryOperator<String>

a UnaryOperator that given a paragraph style, returns a String that includes fold styling.

getFoldStyleCheckback to summary
protected Predicate<String> getFoldStyleCheck()
Returns:Predicate<String>

a Predicate that given a paragraph style, returns true if it includes folding.

getRemoveFoldStyleback to summary
protected UnaryOperator<String> getRemoveFoldStyle()
Returns:UnaryOperator<String>

a UnaryOperator that given a paragraph style, returns a String that excludes fold styling.

isFoldedback to summary
public boolean isFolded(int paragraph)
unfoldParagraphsback to summary
public void unfoldParagraphs(int startingFromPar)

Unfolds paragraphs startingFromPar onwards for the currently folded block.

unfoldTextback to summary
public void unfoldText(int startingFromPos)

Unfolds text startingFromPos onwards for the currently folded block.