|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.clients.util.WTObjectSelection
public class WTObjectSelection
A class which implements the capability required to transfer an array
of WTObjects.
Supported API: true
Extendable: false
| Constructor Summary | |
|---|---|
WTObjectSelection(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 | |
|---|---|
Object |
getTransferData(DataFlavor flavor)
Get the data in the requested format. |
DataFlavor[] |
getTransferDataFlavors()
Determines the array of flavors in which this class can provide data. |
boolean |
isDataFlavorSupported(DataFlavor flavor)
Determines whether the requested flavor is supported by this object. |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WTObjectSelection(WTObject[] wt_object_array)
wt_object_array - an array of WTObjects to transfer.public WTObjectSelection(WTObject wt_object)
wt_object - the WTObject to transfer.| Method Detail |
|---|
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface TransferableDataFlavor,
WTClipboardpublic boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferableflavor - the requested data flavor.
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException,
IOException
getTransferData in interface Transferableflavor - the requested data flavor.
UnsupportedFlavorException - if the requested data flavor is
not supported.
IOException
public void lostOwnership(Clipboard clipboard,
Transferable contents)
lostOwnership in interface ClipboardOwnerclipboard - the clipboard that is no longer ownedcontents - the contents which this owner had placed on the clipboard
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||