SelectionModel supports a single selection segment.
| Modifier and Type | Field and Description |
|---|---|
| private final ChangeListener | |
| private Marker | |
| private final ReadOnlyObjectWrapper | |
| private final ChangeListener | |
| private Marker | |
| private final ReadOnlyObjectWrapper | |
| private StyledTextModel | |
| private final ReadOnlyObjectWrapper |
| Access | Constructor and Description |
|---|---|
| public |
| anchorListener | back to summary |
|---|---|
| private final ChangeListener<TextPos> anchorListener | |
| anchorMarker | back to summary |
|---|---|
| private Marker anchorMarker | |
| anchorPosition | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<TextPos> anchorPosition | |
| caretListener | back to summary |
|---|---|
| private final ChangeListener<TextPos> caretListener | |
| caretMarker | back to summary |
|---|---|
| private Marker caretMarker | |
| caretPosition | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<TextPos> caretPosition | |
| model | back to summary |
|---|---|
| private StyledTextModel model | |
| segment | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<SelectionSegment> segment | |
| SingleSelectionModel | back to summary |
|---|---|
| public SingleSelectionModel() The constructor. | |
| anchorPositionProperty | back to summary |
|---|---|
| public ReadOnlyProperty Implements jfx. Doc from jfx. Anchor position property. The value can be null, indicating no selection. When the anchor position
is Note
| |
| caretPositionProperty | back to summary |
|---|---|
| public ReadOnlyProperty Implements jfx. Doc from jfx. Caret position property. The value can be null, indicating no selection. When the caret position
is Note
| |
| clear | back to summary |
|---|---|
| public void clear() Implements jfx. Doc from jfx. Clears the selection. This sets
| |
| extendSelection | back to summary |
|---|---|
| public void extendSelection(StyledTextModel model, TextPos pos) Implements jfx. Doc from jfx. Extends selection to the specified position.
Internally, the position will be normalized to be within the document boundaries.
This method will issue a
While this method will accept the text position
outside of the document range, the actual values of
| |
| getSelection | back to summary |
|---|---|
| public SelectionSegment getSelection() Implements jfx. Doc from jfx. Returns the current selection. The value can be null, indicating no selection. When the selection segment
is
| |
| isFlippingModel | back to summary |
|---|---|
| private boolean isFlippingModel(StyledTextModel m) | |
| selectionProperty | back to summary |
|---|---|
| public ReadOnlyProperty Implements jfx. Doc from jfx. Selection property. The value can be null, indicating no selection. When the selection segment
is
| |
| setSelection | back to summary |
|---|---|
| public void setSelection(StyledTextModel model, TextPos anchor, TextPos caret) Implements jfx. Doc from jfx. Replaced existing selection, if any, with the new one. While this method will accept the text positions
outside of the document range, the actual values of
| |
| setSelectionSegment | back to summary |
|---|---|
| private void setSelectionSegment(StyledTextModel model, SelectionSegment sel) | |