T - the type of objects.
public abstract class PanelTransferable<T> extends Objectimplements Transferable
| Constructor and Description |
|---|
PanelTransferable(T data, List
Create an instance of the transferable.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getTransferData(DataFlavor
|
abstract Object |
getTransferData(DataFlavor
Override this to provide the transferable data object.
|
DataFlavor |
getTransferDataFlavors()
|
boolean |
isDataFlavorSupported(DataFlavor
|
public PanelTransferable(T data, List<DataFlavor > flavorList)
data - the data to wrap.
flavorList - the list of supported flavors.
public abstract ObjectgetTransferData(DataFlavor flavor, T t)
flavor - the flavor to get the representation of the denoted data object of.
t - the data to retrieve a representation for.
public DataFlavor[] getTransferDataFlavors()
public boolean isDataFlavorSupported(DataFlavorflavor)
public ObjectgetTransferData(DataFlavor flavor)