<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.awt.datatransfer.Clipboard
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.datatransfer.html">This Package</a>  <a href="Package-java.awt.datatransfer.html">Previous</a>  <a href="java.awt.datatransfer.DataFlavor.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.datatransfer.Clipboard
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.awt.datatransfer.Clipboard
</pre>
<hr>
<dl>
  <dt> public class <b>Clipboard</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
</dl>
A class which implements a mechanism to transfer data using 
 cut/copy/paste operations.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#contents"><b>contents</b></a>
  <dd> 
  <dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#owner"><b>owner</b></a>
  <dd> 
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Clipboard(java.lang.String)"><b>Clipboard</b></a>(String)
  <dd>  Creates a clipboard object.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getContents(java.lang.Object)"><b>getContents</b></a>(Object)
  <dd>  Returns a transferable object representing the current contents
 of the clipboard.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getName()"><b>getName</b></a>()
  <dd>  Returns the name of this clipboard object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setContents(java.awt.datatransfer.Transferable, java.awt.datatransfer.ClipboardOwner)"><b>setContents</b></a>(Transferable, ClipboardOwner)
  <dd>  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.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="owner"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>owner</b>
<pre>
 protected <a href="java.awt.datatransfer.ClipboardOwner.html#_top_">ClipboardOwner</a> owner
</pre>
<a name="contents"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>contents</b>
<pre>
 protected <a href="java.awt.datatransfer.Transferable.html#_top_">Transferable</a> contents
</pre>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Clipboard"></a>
<a name="Clipboard(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Clipboard</b>
<pre>
 public Clipboard(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Creates a clipboard object.
<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getName()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getName"><b>getName</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> getName()
</pre>
<dl>
  <dd> Returns the name of this clipboard object.
<p>
</dl>
<a name="setContents(java.awt.datatransfer.Transferable, java.awt.datatransfer.ClipboardOwner)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setContents"><b>setContents</b></a>
<pre>
 public synchronized void setContents(<a href="java.awt.datatransfer.Transferable.html#_top_">Transferable</a> contents,
                                      <a href="java.awt.datatransfer.ClipboardOwner.html#_top_">ClipboardOwner</a> owner)
</pre>
<dl>
  <dd> 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.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> content - the transferable object representing the clipboard content
    <dd> owner - the object which owns the clipboard content
  </dl></dd>
</dl>
<a name="getContents(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getContents"><b>getContents</b></a>
<pre>
 public synchronized <a href="java.awt.datatransfer.Transferable.html#_top_">Transferable</a> getContents(<a href="java.lang.Object.html#_top_">Object</a> requestor)
</pre>
<dl>
  <dd> Returns a transferable object representing the current contents
 of the clipboard.  If the clipboard currently has no contents,
 it returns null.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> requestor - the object requesting the clip data
    <dt> <b>Returns:</b>
    <dd> the current transferable object on the clipboard
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.datatransfer.html">This Package</a>  <a href="Package-java.awt.datatransfer.html">Previous</a>  <a href="java.awt.datatransfer.DataFlavor.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
