public class TransferableWrapper
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Object |
dragObject |
Constructor and Description |
---|
TransferableWrapper(java.lang.Object dragObject)
Instantiate a TransferableWrapper.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor)
Get the transfer data for a flavor.
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Get the transfer data flavors.
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Return true if the data flavor is supported.
|
public TransferableWrapper(java.lang.Object dragObject)
dragObject
- The drag objectpublic java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
getTransferData
in interface java.awt.datatransfer.Transferable
flavor
- the flavorpublic boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
flavor
- the flavor to be checked.public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable