Transferable
public static class ExTransferable.Multi extends Object implements Transferable
Constructor | Description |
---|---|
Multi(Transferable[] trans) |
Constructor taking a list of
Transferable objects. |
Modifier and Type | Method | 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 dataBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.