public interface TextSelection
Widget
with text selection capability in their
editor (sub)component.Modifier and Type | Method and Description |
---|---|
default void |
invalidateSelection()
Deselects the currently selected text (invalidate the text selection state).
|
default boolean |
isSelectionValid()
Check if currently there is some selected text.
|
default void |
removeSelectedText()
Removes (deletes) the selected text if any selected.
|
default boolean |
setSelection(int start,
int end)
Creates a new selection, eventually dropping the already existing one.
|
default void invalidateSelection()
default boolean isSelectionValid()
true
if text is selected.default void removeSelectedText()
default boolean setSelection(int start, int end)
start
- The offset of the start of the new selection.end
- The offset of the end of the new selection.true
is operation is successful.