JavaTM 2 Platform
Std. Ed. v1.4.2

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. 
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
 

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.imageFlavor
          The DataFlavor representing a Java Image 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
static DataFlavor SystemFlavorMap.decodeDataFlavor(String nat)
          Decodes a String native for use as a DataFlavor.
 DataFlavor[] StringSelection.getTransferDataFlavors()
          Returns an array of flavors in which this Transferable can provide the data.
 DataFlavor[] Transferable.getTransferDataFlavors()
          Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
static DataFlavor DataFlavor.getTextPlainUnicodeFlavor()
          Returns a DataFlavor representing plain text with Unicode encoding, where:
static DataFlavor DataFlavor.selectBestTextFlavor(DataFlavor[] availableFlavors)
          Selects the best text DataFlavor from an array of DataFlavors.
 

Methods in java.awt.datatransfer with parameters of type DataFlavor
 List SystemFlavorMap.getNativesForFlavor(DataFlavor flav)
          Returns a List of String natives to which the specified DataFlavor can be translated by the data transfer subsystem.
 Map SystemFlavorMap.getNativesForFlavors(DataFlavor[] flavors)
          Returns a Map of the specified DataFlavors to their most preferred String native.
 void SystemFlavorMap.addUnencodedNativeForFlavor(DataFlavor flav, String nat)
          Adds a mapping from the specified DataFlavor (and all DataFlavors equal to the specified DataFlavor) to the specified String native.
 void SystemFlavorMap.setNativesForFlavor(DataFlavor flav, String[] natives)
          Discards the current mappings for the specified DataFlavor and all DataFlavors equal to the specified DataFlavor, and creates new mappings to the specified String natives.
 void SystemFlavorMap.addFlavorForUnencodedNative(String nat, DataFlavor flav)
          Adds a mapping from a single String native to a single DataFlavor.
 void SystemFlavorMap.setFlavorsForNative(String nat, DataFlavor[] flavors)
          Discards the current mappings for the specified String native, and creates new mappings to the specified DataFlavors.
static String SystemFlavorMap.encodeDataFlavor(DataFlavor flav)
          Encodes a DataFlavor for use as a String native.
 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.
 List FlavorTable.getNativesForFlavor(DataFlavor flav)
          Returns a List of String natives to which the specified DataFlavor corresponds.
 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.
static DataFlavor DataFlavor.selectBestTextFlavor(DataFlavor[] availableFlavors)
          Selects the best text DataFlavor from an array of DataFlavors.
 boolean DataFlavor.equals(DataFlavor that)
          Tests a DataFlavor to this DataFlavor for equality.
 boolean DataFlavor.match(DataFlavor that)
          Tests a DataFlavor to this DataFlavor for equality.
 boolean DataFlavor.isMimeTypeEqual(DataFlavor dataFlavor)
          Compares the mimeType of two DataFlavor objects.
 Map FlavorMap.getNativesForFlavors(DataFlavor[] flavors)
          Returns a Map of the specified DataFlavors to their corresponding String native.
 

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()
          Returns an array of DataFlavor objects indicating the flavors the data can be provided in by the encapsulated transferable.
 DataFlavor[] DropTargetDropEvent.getCurrentDataFlavors()
          This method returns the current DataFlavors.
 DataFlavor[] DropTargetDragEvent.getCurrentDataFlavors()
          This method returns the current DataFlavors 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)
          Returns whether or not the specified data flavor is supported by the encapsulated transferable.
 Object DropTargetContext.TransferableProxy.getTransferData(DataFlavor df)
          Returns an object which represents the data provided by the encapsulated transferable for the requested data flavor.
 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.
 

Uses of DataFlavor in javax.swing
 

Methods in javax.swing with parameters of type DataFlavor
 boolean TransferHandler.canImport(JComponent comp, DataFlavor[] transferFlavors)
          Indicates whether a component would accept an import of the given set of data flavors prior to actually attempting to import it.
 


JavaTM 2 Platform
Std. Ed. v1.4.2

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.

Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.