|
JHotDraw 7.5.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.datatransfer.Clipboard
org.jhotdraw.gui.datatransfer.AbstractClipboard
org.jhotdraw.gui.datatransfer.JNLPClipboard
public class JNLPClipboard
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.
| Field Summary |
|---|
| Fields inherited from class java.awt.datatransfer.Clipboard |
|---|
contents, owner |
| Constructor Summary | |
|---|---|
JNLPClipboard(java.lang.Object target)
Creates a new proxy for the specified target object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.awt.datatransfer.Clipboard |
|---|
addFlavorListener, getAvailableDataFlavors, getData, getFlavorListeners, getName, isDataFlavorAvailable, removeFlavorListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JNLPClipboard(java.lang.Object target)
javax.jnlp.ClipboardService interface.
target - A Clipboard object.| Method Detail |
|---|
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.
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||