Class SelectableTextFlow

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.layout.Pane
javafx.scene.text.TextFlow
atlantafx.base.controls.SelectableTextFlow
All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget

public class SelectableTextFlow extends javafx.scene.text.TextFlow
The SelectableTextFlow class extends the functionality of the regular TextFlow by providing the ability to select a range of text. The selected range is visually highlighted and can be retrieved as a string using getSelectedRangeAsString().

Similar to the regular TextFlow, the SelectableTextFlow can contain any type of nodes; however, for the purpose of text selection, it is recommended to limit the children to Text nodes exclusively. It is important to note that each child Text must accurately report its length, which may not be the case for emojis and font icons.