public class CompositeTransferable extends Object implements Transferable
| Constructor and Description |
|---|
CompositeTransferable()
Creates a new instance of CompositeTransferable
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Transferable t) |
Object |
getTransferData(DataFlavor flavor)
Returns an object which represents the data to be transferred.
|
DataFlavor[] |
getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data
can be provided in.
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
Returns whether or not the specified data flavor is supported for
this object.
|
public CompositeTransferable()
public void add(Transferable t)
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData in interface Transferableflavor - the requested flavor for the dataIOException - if the data is no longer available
in the requested flavor.UnsupportedFlavorException - if the requested data flavor is
not supported.DataFlavor.getRepresentationClass()public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferableflavor - the requested flavor for the dataCopyright © 2014. All Rights Reserved.