org.jhotdraw.gui.datatransfer
Class AbstractClipboard
java.lang.Object
java.awt.datatransfer.Clipboard
org.jhotdraw.gui.datatransfer.AbstractClipboard
- Direct Known Subclasses:
- AWTClipboard, JNLPClipboard
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.
- Version:
- $Id: AbstractClipboard.java 647 2010-01-24 22:52:59Z rawcoder $
- Author:
- Werner Randelshofer
Fields inherited from class java.awt.datatransfer.Clipboard |
contents, owner |
Method Summary |
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. |
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 |
AbstractClipboard
public AbstractClipboard()
getContents
public abstract java.awt.datatransfer.Transferable getContents(java.lang.Object requestor)
- Returns a
Transferable
object representing the current contents
of the clipboard. If the clipboard currently has no contents, it returns
null.
- Overrides:
getContents
in class java.awt.datatransfer.Clipboard
- Returns:
- The current
Transferable
object on the clipboard.
setContents
public 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.
- Overrides:
setContents
in class java.awt.datatransfer.Clipboard
- Parameters:
contents
- The Transferable
object representing clipboard
content.