Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 216 (Maintenance Release)

Package java.awt.datatransfer

Provides interfaces and classes for transferring data between and within applications.

See:
          Description

Interface Summary
ClipboardOwner Defines the interface for classes that will provide data to a clipboard.
Transferable Defines the interface for classes that can be used to provide data for a transfer operation.
 

Class Summary
Clipboard A class which implements a mechanism to transfer data using cut/copy/paste operations.
DataFlavor Each instance represents the opaque concept of a data format as would appear on a clipboard, during drag and drop, or in a file system.
StringSelection A Transferable which implements the capability required to transfer a String.
 

Exception Summary
UnsupportedFlavorException Signals that the requested data is not supported in this flavor.
 

Package java.awt.datatransfer Description

Provides interfaces and classes for transferring data between and within applications. It defines the notion of a "transferable" object, which is an object capable of being transferred between or within applications. An object identifies itself as being transferable by implementing the Transferable interface.

It also provides a clipboard mechanism, which is an object that temporarily holds a transferable object that can be transferred between or within an application. The clipboard is typically used for copy and paste operations. Although it is possible to create a clipboard to use within an application, most applications will use the system clipboard to ensure the data can be transferred across applications running on the platform.

Since:
JDK1.1

JSR 216 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 216 specification.