站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Package java.awt.datatransfer - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

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.
FlavorMap The FlavorMap is an interface to a map that maps platform native type names (strings) to MIME type strings, and also their associated DataFlavors.
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 class which implements the capability required to transfer a simple java String in plain text format.
SystemFlavorMap The SystemFlavorMap is an externally configurable map that maps platform native type names (strings) to MIME type strings, and also their associated DataFlavors.
 

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

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.