public class ClipboardHelper
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ClipboardHelper()
Don't allow instances of this class to be constructed.
|
Modifier and Type | Method and Description |
---|---|
static logical |
editCopy(GenericWidget wid)
Copy the currently selected text into system Clipboard.
|
static logical |
editCut(GenericWidget wid)
Copy the currently selected text into system Clipboard and remove the currently selected
text.
|
static logical |
editPaste(GenericWidget wid)
Paste the system Clipboard content into current cursor position.
|
static logical |
editUndo(GenericWidget wid)
Undo the last changes in text editable widget if possible.
|
static logical |
isEditCanPaste(GenericWidget wid)
Checks if the Clipboard has data to paste from.
|
static logical |
isEditCanUndo(GenericWidget wid)
Checks if the widget can handle text undo request.
|
static logical |
removeSelection(GenericWidget wid)
Removes selected text.
|
private ClipboardHelper()
public static logical removeSelection(GenericWidget wid)
wid
- Widget initiated operation.public static logical editCopy(GenericWidget wid)
wid
- Widget initiated operation.true
if operation success, false
otherwise.public static logical editCut(GenericWidget wid)
true
if operation success, false
otherwise.public static logical editPaste(GenericWidget wid)
true
if operation success, false
otherwise.public static logical isEditCanPaste(GenericWidget wid)
wid
- Widget initiated operation.true
if operation success, false
otherwise.public static logical isEditCanUndo(GenericWidget wid)
wid
- Widget initiated operation.true
if operation success, false
otherwise.public static logical editUndo(GenericWidget wid)
wid
- Widget initiated operation.true
if operation success, false
otherwise.