public abstract class AbstractClipboard
extends java.awt.datatransfer.Clipboard
AbstractClipboard
is a wrapper for the system clipboard which
can be either the Java AWT Clipboard, the javax.jnlp.AbstractClipboard or
native JNI code.Constructor and Description |
---|
AbstractClipboard() |
Modifier and Type | Method and Description |
---|---|
abstract java.awt.datatransfer.Transferable |
getContents(java.lang.Object requestor)
Returns a
Transferable object representing the current contents
of the clipboard. |
abstract 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 abstract java.awt.datatransfer.Transferable getContents(java.lang.Object requestor)
Transferable
object representing the current contents
of the clipboard. If the clipboard currently has no contents, it returns
null.getContents
in class java.awt.datatransfer.Clipboard
Transferable
object on the clipboard.public abstract void setContents(java.awt.datatransfer.Transferable contents, java.awt.datatransfer.ClipboardOwner owner)
Transferable
object.setContents
in class java.awt.datatransfer.Clipboard
contents
- The Transferable
object representing clipboard
content.