public class ElementsTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable, java.awt.datatransfer.ClipboardOwner
限定符和类型 | 字段和说明 |
---|---|
static java.awt.datatransfer.DataFlavor |
CellElementsClipDataFlavor |
static java.awt.datatransfer.DataFlavor |
FloatElementClipDataFlavor |
static java.awt.datatransfer.DataFlavor |
StringDataFlavor |
构造器和说明 |
---|
ElementsTransferable()
Creates a
Transferable capable. |
限定符和类型 | 方法和说明 |
---|---|
void |
addObject(java.lang.Object object) |
static java.lang.Object |
getElementNotStringTransderData(java.awt.datatransfer.Transferable transferable)
ElementNotStringTransderData.
|
java.lang.Object |
getFirstObject() |
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 CellElementsClipDataFlavor
public static final java.awt.datatransfer.DataFlavor FloatElementClipDataFlavor
public static final java.awt.datatransfer.DataFlavor StringDataFlavor
public void addObject(java.lang.Object object)
public java.lang.Object getFirstObject()
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
public static java.lang.Object getElementNotStringTransderData(java.awt.datatransfer.Transferable transferable) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException