java.awt.datatransfer
Class Clipboard
java.lang.Object
|
+--java.awt.datatransfer.Clipboard
public class
Clipboardextends
Object This class allows data to be transferred using a cut and paste type
mechanism.
Author:- Aaron M. Renn (arenn@urbanophile.com)
contents
protected Transferable contents
The data being transferred.
owner
protected ClipboardOwner owner
The owner of this clipboard.
Clipboard
public Clipboard(java.lang.String name)
Initializes a new instance of Clipboard
with the
specified name.
Parameters:
getContents
public synchronized Transferable getContents(java.lang.Object requestor)
Returns the contents of the clipboard.
Parameters:
Throws:
getName
public String getName()
Returns the name of the clipboard.
setContents
public synchronized void setContents(java.awt.datatransfer.Transferable contents, java.awt.datatransfer.ClipboardOwner owner)
Sets the content and owner of this clipboard.
If the given owner is different from the current owner
then lostOwnership is called on the current owner.
XXX - is this called with the old or new contents.
Parameters:
Throws: