Class java.awt.datatransfer.Clipboard
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.datatransfer.Clipboard

Object
   |
   +----java.awt.datatransfer.Clipboard

public class Clipboard
extends Object
A class which implements a mechanism to transfer data using cut/copy/paste operations.

Version:
1.6, 07/01/98
Author:
Amy Fowler

Variable Index

 o contents
 o owner

Constructor Index

 o java.awt.datatransfer.Clipboard(String)
Creates a clipboard object.

Method Index

 o getContents(Object)
Returns a transferable object representing the current contents of the clipboard.
 o getName()
Returns the name of this clipboard object.
 o setContents(Transferable, ClipboardOwner)
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.

Variables

 o contents
protected java.awt.datatransfer.Transferable contents
 o owner
protected java.awt.datatransfer.ClipboardOwner owner

Constructors

 o Clipboard
public Clipboard(String name)
Creates a clipboard object.

Methods

 o getContents
public synchronized java.awt.datatransfer.Transferable getContents(Object requestor)
Returns a transferable object representing the current contents of the clipboard. If the clipboard currently has no contents, it returns null.

Parameters:
requestor - the object requesting the clip data
Returns:
the current transferable object on the clipboard
 o getName
public java.lang.String getName()
Returns the name of this clipboard object.

 o setContents
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. 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
owner - the object which owns the clipboard content

All Packages  Class Hierarchy  This Package  Previous  Next  Index