API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.datatransfer. Clipboard View Source
Author(s)
Amy Fowler
Alexander Gerasimov
Since
Version
1.24, 04/07/06
Serial
Hierarchy
 Object
      Clipboard
Implements
Subclasses
Description
public class Clipboard
  A class that implements a mechanism to transfer data using cut/copy/paste operations.
Constructors
public Clipboard (String name)
  Creates a clipboard object.
Methods
Hide/Show inherited methods
publicsynchronized void addFlavorListener (FlavorListener listener)
  Registers the specified FlavorListener to receive FlavorEvents from this clipboard.
public DataFlavor getAvailableDataFlavors ()
  Returns an array of DataFlavors in which the current contents of this clipboard can be provided.
publicsynchronized Transferable getContents (Object requestor)
  Returns a transferable object representing the current contents of the clipboard.
public Object getData (DataFlavor flavor) throws UnsupportedFlavorException IOException
  Returns an object representing the current contents of this clipboard in the specified DataFlavor.
publicsynchronized FlavorListener getFlavorListeners ()
  Returns an array of all the FlavorListeners currently registered on this Clipboard.
public String getName ()
  Returns the name of this clipboard object.
public boolean isDataFlavorAvailable (DataFlavor flavor)
  Returns whether or not the current contents of this clipboard can be provided in the specified DataFlavor.
publicsynchronized void removeFlavorListener (FlavorListener listener)
  Removes the specified FlavorListener so that it no longer receives FlavorEvents from this Clipboard.
publicsynchronized 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.
Fields
Hide/Show inherited fields
protected Transferable contents
pack-private String name
protected ClipboardOwner owner
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar