public interface SelectableText
Modifier and Type | Method and Description |
---|---|
logical |
clearSelection()
Clears text selection
|
logical |
editCopy()
Copy the currently selected text into system Clipboard.
|
logical |
editCut()
Copy the currently selected text into system Clipboard and remove the currently selected
text.
|
logical |
editPaste()
Paste the system Clipboard content into current cursor position.
|
default void |
focusAndSelect()
Sets focus to widget and selects all current text
|
integer |
getSelectionEnd()
Get SELECTION-END attribute.
|
integer |
getSelectionStart()
Get SELECTION-START attribute.
|
character |
getSelectionText()
Get SELECTION-TEXT attribute.
|
logical |
isEditCanPaste()
Get EDIT-CAN-PASTE attribute.
|
logical |
isTextSelected()
Checks is text selection is action.
|
logical |
removeSelection()
Removes selected text.
|
logical |
setSelection(int64 start,
int end)
Selects text in a widget between start and end points.
|
logical |
setSelection(int64 start,
int64 end)
Selects text in a widget between start and end points.
|
logical |
setSelection(int start,
int end)
Selects text in a widget between start and end points.
|
logical |
setSelection(int start,
int64 end)
Selects text in a widget between start and end points.
|
character getSelectionText()
integer getSelectionEnd()
integer getSelectionStart()
logical setSelection(int64 start, int64 end)
start
- Starting offset.end
- Ending offset.true
if the operation succeeded.logical setSelection(int64 start, int end)
start
- Starting offset.end
- Ending offset.true
if the operation succeeded.logical setSelection(int start, int64 end)
start
- Starting offset.end
- Ending offset.true
if the operation succeeded.logical setSelection(int start, int end)
start
- Starting offset.end
- Ending offset.true
if the operation succeeded.logical isTextSelected()
true
if text selection is active.logical clearSelection()
logical removeSelection()
logical editCopy()
true
if operation success, false
otherwise.logical editCut()
true
if operation success, false
otherwise.logical editPaste()
true
if operation success, false
otherwise.logical isEditCanPaste()
default void focusAndSelect()