public interface IClipboard
The basic implementation only allows for the setting of Text, File Names and ImageData objects. Mechanisms for adding new types may be added externally to this interface.
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_FILE_NAME_LIST
This is a Clipboard type that represents a list of file names.
|
static String |
TYPE_IMAGE
This is a Clipboard type that represents an eve.sys.ImageData type.
|
static String |
TYPE_TEXT
This is a Clipboard type that represents Unicode text.
|
Modifier and Type | Method and Description |
---|---|
void |
closeClipboard()
Close the clipboard.
|
void |
emptyClipboardData(String dataType)
Empty the clipboard of a particular data type if possible.
|
String[] |
getAvailableInClipboard()
Returns an array of available data types.
|
Object |
getClipboardData(String dataType)
Returns the data in the clipboard of a particular type.
|
String[] |
getClipboardFileNameList() |
ImageData |
getClipboardImage() |
String |
getClipboardText() |
boolean |
isAvailableInClipboard(String dataType)
Returns if a particular data type is available for retrieval from the Clipboard.
|
boolean |
isOpenClipboard()
Returns if this IClipboard is actually connected to an open clipboard.
|
boolean |
setClipboardData(String dataType,
Object data)
Place the data in the clipboard.
|
boolean |
setClipboardFileNameList(String[] fileNames) |
boolean |
setClipboardImage(ImageData image) |
boolean |
setClipboardText(String text) |
static final String TYPE_TEXT
static final String TYPE_IMAGE
static final String TYPE_FILE_NAME_LIST
boolean isOpenClipboard()
boolean isAvailableInClipboard(String dataType)
dataType
- on of the TYPE_XXX values.String[] getAvailableInClipboard()
Object getClipboardData(String dataType)
dataType
- the data type to retrieve.boolean setClipboardData(String dataType, Object data)
dataType
- the data type.data
- the data to store in the clipboard.void emptyClipboardData(String dataType)
dataType
- the data type to empty or null to empty the clipboard entirely.void closeClipboard()
String[] getClipboardFileNameList()
ImageData getClipboardImage()
String getClipboardText()
boolean setClipboardText(String text)
boolean setClipboardImage(ImageData image)
boolean setClipboardFileNameList(String[] fileNames)