public class SerializableTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable, java.awt.datatransfer.ClipboardOwner
限定符和类型 | 字段和说明 |
---|---|
static java.awt.datatransfer.DataFlavor |
SerializableDataFlavor |
构造器和说明 |
---|
SerializableTransferable(java.io.Serializable data)
Creates a
Transferable capable. |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor)
Gets the
Transferable 's data in the requested
DataFlavor if possible. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Returns an array of flavors in which this
Transferable
can provide the data. |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Returns whether the requested flavor is supported by this
Transferable . |
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents) |
public static final java.awt.datatransfer.DataFlavor SerializableDataFlavor
public SerializableTransferable(java.io.Serializable data)
Transferable
capable.public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Transferable
can provide the data.getTransferDataFlavors
在接口中 java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Transferable
.isDataFlavorSupported
在接口中 java.awt.datatransfer.Transferable
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
Transferable
's data in the requested
DataFlavor
if possible.getTransferData
在接口中 java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
lostOwnership
在接口中 java.awt.datatransfer.ClipboardOwner