public static class ExTransferable.Multi extends Object implements Transferable
Constructor and Description |
---|
Multi(Transferable[] trans)
Constructor taking a list of
Transferable objects. |
Modifier and Type | Method and Description |
---|---|
Object |
getTransferData(DataFlavor flavor)
Get transfer data.
|
DataFlavor[] |
getTransferDataFlavors()
Get supported flavors.
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
Is this flavor supported?
|
public Multi(Transferable[] trans)
Transferable
objects.trans
- array of transferable objectspublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
ExTransferable.multiFlavor
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
flavor
- the flavortrue
only if the flavor is ExTransferable.multiFlavor
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
flavor
- the flavor (ExTransferable.multiFlavor
)MultiTransferObject
that represents data in this objectUnsupportedFlavorException
- when the flavor is not supportedIOException
- when it is not possible to read data