Package wt.clients.util
Class WTObjectSelection
java.lang.Object
wt.clients.util.WTObjectSelection
- All Implemented Interfaces:
ClipboardOwner,Transferable
A class which implements the capability required to transfer an array
of WTObjects.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Constructor Summary
ConstructorsConstructorDescriptionWTObjectSelection(WTObject wt_object) Creates a transferable object capable of transfering the specified WTObject.WTObjectSelection(WTObject[] wt_object_array) Creates a transferable object capable of transfering the specified array of WTObjects. -
Method Summary
Modifier and TypeMethodDescriptiongetTransferData(DataFlavor flavor) Get the data in the requested format.Determines the array of flavors in which this class can provide data.booleanisDataFlavorSupported(DataFlavor flavor) Determines whether the requested flavor is supported by this object.voidlostOwnership(Clipboard clipboard, Transferable contents) Notifies this object that it is no longer the owner of the contents of the clipboard.
-
Constructor Details
-
WTObjectSelection
Creates a transferable object capable of transfering the specified array of WTObjects.
Supported API: true- Parameters:
wt_object_array- an array of WTObjects to transfer.
-
WTObjectSelection
Creates a transferable object capable of transfering the specified WTObject.
Supported API: true- Parameters:
wt_object- the WTObject to transfer.
-
-
Method Details
-
getTransferDataFlavors
Determines the array of flavors in which this class can provide data.
Supported API: true- Specified by:
getTransferDataFlavorsin interfaceTransferable- Returns:
- the array of flavors in which this class can provide data.
- See Also:
-
isDataFlavorSupported
Determines whether the requested flavor is supported by this object.
Supported API: true- Specified by:
isDataFlavorSupportedin interfaceTransferable- Parameters:
flavor- the requested data flavor.- Returns:
- true if the flavor is supported, otherwise false.
-
getTransferData
Get the data in the requested format.
Supported API: true- Specified by:
getTransferDatain interfaceTransferable- Parameters:
flavor- the requested data flavor.- Throws:
UnsupportedFlavorException- if the requested data flavor is not supported.IOException
-
lostOwnership
Notifies this object that it is no longer the owner of the contents of the clipboard.
Supported API: true- Specified by:
lostOwnershipin interfaceClipboardOwner- Parameters:
clipboard- the clipboard that is no longer ownedcontents- the contents which this owner had placed on the clipboard
-