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 TransferableExTransferable.multiFlavorpublic boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferableflavor - the flavortrue only if the flavor is ExTransferable.multiFlavorpublic Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData in interface Transferableflavor - 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 August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.