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.ClipboardAbstractClipboardis a wrapper for the system clipboard which can be either the Java AWT Clipboard, the javax.jnlp.AbstractClipboard or native JNI code.
-
-
Constructor Summary
Constructors Constructor and Description AbstractClipboard()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract java.awt.datatransfer.TransferablegetContents(java.lang.Object requestor)Returns aTransferableobject representing the current contents of the clipboard.abstract voidsetContents(java.awt.datatransfer.Transferable contents, java.awt.datatransfer.ClipboardOwner owner)Sets the current contents of the clipboard to the specifiedTransferableobject.
-
-
-
Method Detail
-
getContents
public abstract java.awt.datatransfer.Transferable getContents(java.lang.Object requestor)
Returns aTransferableobject representing the current contents of the clipboard. If the clipboard currently has no contents, it returns null.- Overrides:
getContentsin classjava.awt.datatransfer.Clipboard- Returns:
- The current
Transferableobject 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 specifiedTransferableobject.- Overrides:
setContentsin classjava.awt.datatransfer.Clipboard- Parameters:
contents- TheTransferableobject representing clipboard content.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG