public abstract class Transferable extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Transferable() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addTransferData(TransferData<?> transferData) |
<T> T |
getData(Class<T> clazz)
Returns any data for the specified
Class, regardless of
suitability rank, or null if this Transferable doesn't contain data
with Class's DataFlavor, or if the value of the data is null. |
<T> T |
getData(DataFlavor<T> flavor)
Returns any data for the specified
DataFlavor, regardless of
suitability rank, or null if this Transferable doesn't contain the
DataFlavor or if the value of the data is null. |
List<TransferData<?>> |
getSuitableTransferData(Set<DataFlavor<?>> suitableDataFlavors)
Given a
Set of DataFlavors, returns a List of TransferDatas
available in the Transferable in order from highest suitablity to lowest. |
abstract <T> TransferData<T> |
getTransferData(DataFlavor<T> flavor)
Returns any
TransferData for the specified DataFlavor, regardless of
suitability rank, or null if this Transferable doesn't contain the
Transferable. |
boolean |
isDataFlavorSupported(DataFlavor<?> flavor)
Returns
true if the Transferable can return a TransferData for the
specified DataFlavor. |
public boolean isDataFlavorSupported(DataFlavor<?> flavor)
true if the Transferable can return a TransferData for the
specified DataFlavor.flavor - DataFlavor to check for.true if the Transferable contains a TransferData for this
DataFlavor.getTransferData(oracle.adf.view.rich.datatransfer.DataFlavor<T>)public final <T> T getData(Class<T> clazz)
Class, regardless of
suitability rank, or null if this Transferable doesn't contain data
with Class's DataFlavor, or if the value of the data is null.T - This describes the type parameterclazz - Class to retrieve the TransferData for.getSuitableTransferData(java.util.Set<oracle.adf.view.rich.datatransfer.DataFlavor<?>>)public final <T> T getData(DataFlavor<T> flavor)
DataFlavor, regardless of
suitability rank, or null if this Transferable doesn't contain the
DataFlavor or if the value of the data is null.T - This describes the type parameterflavor - DataFlavor to retrieve the data for.getSuitableTransferData(java.util.Set<oracle.adf.view.rich.datatransfer.DataFlavor<?>>)public abstract <T> TransferData<T> getTransferData(DataFlavor<T> flavor)
TransferData for the specified DataFlavor, regardless of
suitability rank, or null if this Transferable doesn't contain the
Transferable.T - This describes the type parameterflavor - DataFlavor to retrieve the TransferData for.TransferDatagetSuitableTransferData(java.util.Set<oracle.adf.view.rich.datatransfer.DataFlavor<?>>)public final List<TransferData<?>> getSuitableTransferData(Set<DataFlavor<?>> suitableDataFlavors)
Set of DataFlavors, returns a List of TransferDatas
available in the Transferable in order from highest suitablity to lowest.suitableDataFlavors - Set of DataFlavors the callers is willing to acceptList of TransferDatas
available in the Transferable in order from highest suitablity to lowest.public abstract void addTransferData(TransferData<?> transferData)