public final class SimpleTransferable<T>
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Constructor and Description |
---|
SimpleTransferable(T data,
java.lang.Class<T> dataClass) |
SimpleTransferable(T data,
java.lang.Class<T> dataClass,
java.awt.datatransfer.DataFlavor flavor) |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getData(java.awt.datatransfer.Transferable transferable,
java.lang.Class<T> dataClass) |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor) |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor) |
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
getTransferData
in interface java.awt.datatransfer.Transferable
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
public static <T> T getData(java.awt.datatransfer.Transferable transferable, java.lang.Class<T> dataClass)