public class JNLPClipboard extends AbstractClipboard
JNLPClipboard acts as a proxy to a JNLP
ClipboardService object.
Uses Reflection to access the JNLP object, because JNLP is not available in J2SE 5.
Proxy
JNLPClipboard acts as a proxy to a JNLP ClipboardService object.
Proxy: JNLPClipboard; Target: javax.jnlp.ClipboardService.
| Constructor and Description |
|---|
JNLPClipboard(java.lang.Object 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.lang.Object |
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 JNLPClipboard(java.lang.Object target)
javax.jnlp.ClipboardService interface.target - A Clipboard object.public java.lang.Object getTarget()
public java.awt.datatransfer.Transferable getContents(java.lang.Object requestor)
AbstractClipboardTransferable object representing the current contents
of the clipboard. If the clipboard currently has no contents, it returns
null.getContents in class AbstractClipboardTransferable object on the clipboard.public void setContents(java.awt.datatransfer.Transferable contents,
java.awt.datatransfer.ClipboardOwner owner)
AbstractClipboardTransferable object.setContents in class AbstractClipboardcontents - The Transferable object representing clipboard
content.