java.awt.dnd
protected class DropTargetContext.TransferableProxy extends Object implements Transferable
Modifier and Type | Field and Description |
---|---|
protected boolean |
isLocal |
protected Transferable |
transferable |
Modifier and Type | Method and Description |
---|---|
Object |
getTransferData(DataFlavor flavor)
Returns the data in the specified
DataFlavor . |
DataFlavor[] |
getTransferDataFlavors()
This method returns a list of available data flavors for the data being
transferred.
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
Tests whether or not this data can be delivered in the specified data
flavor.
|
protected boolean isLocal
protected Transferable transferable
public DataFlavor[] getTransferDataFlavors()
Transferable
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
Transferable
isDataFlavorSupported
in interface Transferable
flavor
- the data flavor to testpublic Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
Transferable
DataFlavor
.getTransferData
in interface Transferable
flavor
- the data flavor to returnUnsupportedFlavorException
- if the flavor is not supportedIOException
- if the data is not availableDataFlavor.getRepresentationClass()