java.awt.dnd
Class DropTargetContext.TransferableProxy
java.lang.Object
java.awt.dnd.DropTargetContext.TransferableProxy
- All Implemented Interfaces:
- Transferable
- Enclosing class:
- DropTargetContext
protected class DropTargetContext.TransferableProxy
- extends Object
- implements Transferable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isLocal
protected boolean isLocal
transferable
protected Transferable transferable
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- Description copied from interface:
Transferable
- This method returns a list of available data flavors for the data being
transferred. The array returned will be sorted from most preferred
flavor at the beginning to least preferred at the end.
- Specified by:
getTransferDataFlavors
in interface Transferable
- Returns:
- adA list of data flavors for this data
isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)
- Description copied from interface:
Transferable
- Tests whether or not this data can be delivered in the specified data
flavor.
- Specified by:
isDataFlavorSupported
in interface Transferable
- Parameters:
flavor
- the data flavor to test
- Returns:
- true if the data flavor is supported
getTransferData
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException,
IOException
- Description copied from interface:
Transferable
- Returns the data in the specified
DataFlavor
.
- Specified by:
getTransferData
in interface Transferable
- Parameters:
flavor
- the data flavor to return
- Returns:
- the data in the appropriate flavor
- Throws:
UnsupportedFlavorException
- if the flavor is not supported
IOException
- if the data is not available- See Also:
DataFlavor.getRepresentationClass()