public abstract static class ExTransferable.Single extends Object implements Transferable
ExTransferable.Single.getData()
.Constructor and Description |
---|
Single(DataFlavor flavor)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
getData()
Abstract method to override to provide the right data for this
transferable.
|
Object |
getTransferData(DataFlavor flavor) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(DataFlavor flavor) |
public Single(DataFlavor flavor)
flavor
- flavor of the datapublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
UnsupportedFlavorException
IOException
protected abstract Object getData() throws IOException, UnsupportedFlavorException
IOException
- when an I/O error occursUnsupportedFlavorException
- if the flavor is not supported