public class GenericTransferable extends Object implements Transferable
| Modifier and Type | Field and Description |
|---|---|
static DataFlavor |
ELEMENT_FLAVOR |
| Constructor and Description |
|---|
GenericTransferable(Object value) |
GenericTransferable(Object[] data) |
| Modifier and Type | Method and Description |
|---|---|
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 static final DataFlavor ELEMENT_FLAVOR
public GenericTransferable(Object value)
public GenericTransferable(Object[] data)
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferableflavor - the requested flavor for the datapublic 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()