| java.lang.Object java.awt.datatransfer.Clipboard
All known Subclasses: sun.awt.qt.QtClipboard, sun.awt.SunClipboard, sun.awt.pocketpc.PPCClipboard, sun.awt.gtk.GtkClipboard,
Clipboard | public class Clipboard (Code) | | A class which implements a mechanism to transfer data using
cut/copy/paste operations.
version: 1.12, 02/02/00 author: Amy Fowler |
Constructor Summary | |
public | Clipboard(String name) Creates a clipboard object. |
Method Summary | |
public synchronized Transferable | getContents(Object requestor) Returns a transferable object representing the current contents
of the clipboard. | public String | getName() Returns the name of this clipboard object. | public synchronized void | setContents(Transferable contents, ClipboardOwner owner) Sets the current contents of the clipboard to the specified
transferable object and registers the specified clipboard owner
as the owner of the new contents. |
Clipboard | public Clipboard(String name)(Code) | | Creates a clipboard object.
|
getContents | public synchronized Transferable getContents(Object requestor)(Code) | | Returns a transferable object representing the current contents
of the clipboard. If the clipboard currently has no contents,
it returns null. The parameter Object requestor is not currently used.
Parameters: requestor - the object requesting the clip data (not used) the current transferable object on the clipboard |
getName | public String getName()(Code) | | Returns the name of this clipboard object.
|
setContents | public synchronized void setContents(Transferable contents, ClipboardOwner owner)(Code) | | Sets the current contents of the clipboard to the specified
transferable object and registers the specified clipboard owner
as the owner of the new contents. If there is an existing owner
registered, that owner is notified that it no longer holds ownership
of the clipboard contents.
Parameters: content - the transferable object representing the clipboard content Parameters: owner - the object which owns the clipboard content |
|
|