Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.3.1
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
java.awt.datatransfer.DataFlavor

Packages that use DataFlavor
java.awt.datatransfer | Provides interfaces and classes for transferring data between and within applications.
java.awt.dnd | Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.

Uses of DataFlavor in java.awt.datatransfer

Fields in java.awt.datatransfer declared as DataFlavor
`static DataFlavor` | `DataFlavor.stringFlavor` The DataFlavor representing a Java Unicode String class, where:
`static DataFlavor` | `DataFlavor.plainTextFlavor` Deprecated. as of 1.3. Use `DataFlavor.getReaderForText( Transferable)` instead of `Transferable. getTransferData(DataFlavor.plainTextFlavor)`.
`static DataFlavor` | `DataFlavor.javaFileListFlavor` To transfer a list of files to/from Java (and the underlying platform) a DataFlavor of this type/subtype and representation class of java.util.List is used.

Methods in java.awt.datatransfer that return DataFlavor
`DataFlavor[]` | `Transferable.getTransferDataFlavors()` Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
`DataFlavor[]` | `StringSelection.getTransferDataFlavors()` Returns an array of flavors in which this Transferable can provide the data.
`static DataFlavor` | `SystemFlavorMap.decodeDataFlavor(String atom)`
`static DataFlavor` | `DataFlavor.getTextPlainUnicodeFlavor()`
`static DataFlavor` | `DataFlavor.selectBestTextFlavor(DataFlavor[] availableFlavors)`

Methods in java.awt.datatransfer with parameters of type DataFlavor
`boolean` | `Transferable.isDataFlavorSupported(DataFlavor flavor)` Returns whether or not the specified data flavor is supported for this object.
`Object` | `Transferable.getTransferData(DataFlavor flavor)` Returns an object which represents the data to be transferred.
`boolean` | `StringSelection.isDataFlavorSupported(DataFlavor flavor)` Returns whether the requested flavor is supported by this Transferable.
`Object` | `StringSelection.getTransferData(DataFlavor flavor)` Returns the Transferable's data in the requested DataFlavor if possible.
`Map` | `SystemFlavorMap.getNativesForFlavors(DataFlavor[] flavors)` map flavors to native data types names
`static String` | `SystemFlavorMap.encodeDataFlavor(DataFlavor df)`
`static DataFlavor` | `DataFlavor.selectBestTextFlavor(DataFlavor[] availableFlavors)`
`boolean` | `DataFlavor.equals(DataFlavor that)` Two DataFlavors are considered equal if and only if their MIME primary type and subtype and representation class are equal.
`boolean` | `DataFlavor.match(DataFlavor that)` Two DataFlavors match if their primary types, subtypes, and representation classes are all equal.
`boolean` | `DataFlavor.isMimeTypeEqual(DataFlavor dataFlavor)` Compare the mimeType of two DataFlavor objects no parameters are considered
`Map` | `FlavorMap.getNativesForFlavors(DataFlavor[] flavors)` map flavors to native data types names

Constructors in java.awt.datatransfer with parameters of type DataFlavor
`UnsupportedFlavorException(DataFlavor flavor)` Constructs an UnsupportedFlavorException.

Uses of DataFlavor in java.awt.dnd

Methods in java.awt.dnd that return DataFlavor
`protected DataFlavor[]` | `DropTargetContext.getCurrentDataFlavors()` get the available DataFlavors of the `Transferable` operand of this operation.
`DataFlavor[]` | `DropTargetContext.TransferableProxy.getTransferDataFlavors()` get the flavors
`DataFlavor[]` | `DropTargetDropEvent.getCurrentDataFlavors()` This method returns the current DataFlavors.
`DataFlavor[]` | `DropTargetDragEvent.getCurrentDataFlavors()` This method returns the current `DataFlavor`s from the `DropTargetContext`.

Methods in java.awt.dnd with parameters of type DataFlavor
`protected boolean` | `DropTargetContext.isDataFlavorSupported(DataFlavor df)` This method returns a `boolean` indicating if the given `DataFlavor` is supported by this `DropTargetContext`.
`boolean` | `DropTargetContext.TransferableProxy.isDataFlavorSupported(DataFlavor flavor)` check if a particular flavor is supported?
`Object` | `DropTargetContext.TransferableProxy.getTransferData(DataFlavor df)` get the transfer data
`boolean` | `DropTargetDropEvent.isDataFlavorSupported(DataFlavor df)` This method returns a `boolean` indicating if the specified `DataFlavor` is available from the source.
`boolean` | `DropTargetDragEvent.isDataFlavorSupported(DataFlavor df)` This method returns a `boolean` indicating if the specified `DataFlavor` is supported.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Std. Ed. v1.3.1
PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

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