public interface TextSelection
Widget with text selection capability in their
editor (sub)component.| Modifier and Type | Method and Description |
|---|---|
default boolean |
editPaste()
Performs GUI driver specific operations for PASTE software generated command.
|
default void |
invalidateSelection()
Deselects the currently selected text (invalidate the text selection state).
|
default boolean |
isEditCanUndo()
Check if the UNDO operation is possible for current widget.
|
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.default boolean isEditCanUndo()
true if text is undoable.default boolean editPaste()
true if operation was successfull.