Package org.jjazz.uiutilities.api
Class FileTransferable
java.lang.Object
org.jjazz.uiutilities.api.FileTransferable
- All Implemented Interfaces:
Transferable
A transferable for one file which supports DataFlavor.javaFileListFlavor.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list which contains only our file.boolean
isDataFlavorSupported
(DataFlavor flavor)
-
Constructor Details
-
FileTransferable
Build a transferable for the specified file.- Parameters:
file
- Can be null
-
-
Method Details
-
getTransferDataFlavors
- Specified by:
getTransferDataFlavors
in interfaceTransferable
-
isDataFlavorSupported
- Specified by:
isDataFlavorSupported
in interfaceTransferable
-
getTransferData
Returns a list which contains only our file.- Specified by:
getTransferData
in interfaceTransferable
- Parameters:
df
-- Returns:
- Throws:
UnsupportedFlavorException
IOException
-