public class AWTClipboard extends AbstractClipboard
AWTClipboard
acts as a proxy to an AWT Clipboard
object.
Proxy
AWTClipboard
acts as a proxy to an AWT Clipboard
object.
Proxy: AWTClipboard
; Target: java.awt.datatransfer.Clipboard
.
Constructor and Description |
---|
AWTClipboard(java.awt.datatransfer.Clipboard target)
Creates a new proxy for the specified target object.
|
Modifier and Type | Method and Description |
---|---|
java.awt.datatransfer.Transferable |
getContents(java.lang.Object requestor)
Returns a
Transferable object representing the current contents
of the clipboard. |
java.awt.datatransfer.Clipboard |
getTarget()
Returns the proxy target.
|
void |
setContents(java.awt.datatransfer.Transferable contents,
java.awt.datatransfer.ClipboardOwner owner)
Sets the current contents of the clipboard to the specified
Transferable object. |
public AWTClipboard(java.awt.datatransfer.Clipboard target)
target
- A Clipboard object.public java.awt.datatransfer.Clipboard getTarget()
public java.awt.datatransfer.Transferable getContents(java.lang.Object requestor)
AbstractClipboard
Transferable
object representing the current contents
of the clipboard. If the clipboard currently has no contents, it returns
null.getContents
in class AbstractClipboard
Transferable
object on the clipboard.public void setContents(java.awt.datatransfer.Transferable contents, java.awt.datatransfer.ClipboardOwner owner)
Transferable
object.setContents
in class AbstractClipboard
contents
- The Transferable
object representing clipboard
content.