JavaTM 2 Platform
Std. Ed. v1.3.1

Uses of Class
java.awt.datatransfer.DataFlavor

Packages that use DataFlavor
com.apple.mrj.datatransfer   
com.apple.mrj.dnd   
java.awt.datatransfer   
java.awt.dnd   
 

Uses of DataFlavor in com.apple.mrj.datatransfer
 

Subclasses of DataFlavor in com.apple.mrj.datatransfer
 class OSTypeFlavor
          Deprecated. As of MacOSX 10.2
 

Fields in com.apple.mrj.datatransfer declared as DataFlavor
 DataFlavor Translation.source
          Deprecated. Source flavor.
 DataFlavor Translation.destination
          Deprecated. Destination flavor.
static DataFlavor TranslationUtils.kTypeJavaFile
          Deprecated.  
 

Methods in com.apple.mrj.datatransfer that return DataFlavor
 DataFlavor[] Transfer.getTransferDataFlavors()
          Deprecated. Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
 DataFlavor[] TranslationSet.getTranslationsFrom(DataFlavor[] source)
          Deprecated. Returns an array of all the unique DataFlavors into which the array of source DataFlavors can be translated.
 DataFlavor[] TranslatedTransferable.getTransferDataFlavors()
          Deprecated.  
 DataFlavor MimeToOSTypeMapper.unmapFlavor(MRJOSType osType)
          Deprecated. Returns the DataFlavor corresponding to a particular OSType returned from mapFlavor.
 DataFlavor[] FileTransferable.getTransferDataFlavors()
          Deprecated.  
 DataFlavor OSTypeToMimeMapper.mapOSType(MRJOSType osType)
          Deprecated. Maps an OSType into the corresponding MIME type to present to Java clients.
 

Methods in com.apple.mrj.datatransfer with parameters of type DataFlavor
 void Transfer.addFlavor(DataFlavor flavor, Object data)
          Deprecated. Adds a data flavor, with its data.
 void Transfer.addPromiseFlavor(DataFlavor flavor)
          Deprecated. Adds a data flavor with a "promise" of its data.
 void Transfer.setDataFlavorFlags(DataFlavor flavor, int flags)
          Deprecated. Sets the flags for a data flavor.
 boolean Transfer.isDataFlavorSupported(DataFlavor flavor)
          Deprecated. Returns whether or not the specified data flavor is supported for this object.
 boolean Transfer.isDataAvailable(DataFlavor flavor)
          Deprecated. Returns whether or not the data of the specified flavor is already available.
 Object Transfer.getRawTransferData(DataFlavor flavor)
          Deprecated. Gets the transfer data without resolving promises (calling getPromiseData) or wrapping any InputStreams around byte arrays.
 Object Transfer.getTransferData(DataFlavor flavor)
          Deprecated. Returns an object which represents the data to be transferred.
protected  Object Transfer.getPromiseData(DataFlavor flavor)
          Deprecated. Called to request the data for a flavor that was "promised", i.e.
 int Transfer.getDataFlavorFlags(DataFlavor flavor)
          Deprecated. Returns the flags associated with a DataFlavor.
 void TranslationSet.addTranslator(DataFlavor from, DataFlavor to, String translatorClass)
          Deprecated. Registers a Translator without having to intantiate it or even load the class.
 DataFlavor[] TranslationSet.getTranslationsFrom(DataFlavor[] source)
          Deprecated. Returns an array of all the unique DataFlavors into which the array of source DataFlavors can be translated.
 Object TranslationSet.translate(Transferable t, DataFlavor destination)
          Deprecated. Translates the data from a Transferable into the desired destination flavor.
 boolean TranslatedTransferable.isFlavorTranslated(DataFlavor flavor)
          Deprecated. Determines whether a flavor is the result of a translation or whether it came from the source Transferable.
 boolean TranslatedTransferable.isDataFlavorSupported(DataFlavor flavor)
          Deprecated.  
 Object TranslatedTransferable.getTransferData(DataFlavor flavor)
          Deprecated.  
 int TranslatedTransferable.getDataFlavorFlags(DataFlavor flavor)
          Deprecated.  
static Transferable TranslatedTransferable.getSourceOfFlavor(Transferable t, DataFlavor flavor)
          Deprecated. Strips any wrapped TranslatedTransferables off of the given Transferable, returning (presumably) the object that actually provides the given flavor.
 MRJOSType MimeToOSTypeMapper.mapFlavor(DataFlavor flavor)
          Deprecated. Maps a DataFlavor to an OSType.
 boolean FileTransferable.isFlavorTranslated(DataFlavor flavor)
          Deprecated. Determines whether a flavor is the result of a translation or whether it came from the source Transferable.
 boolean FileTransferable.isDataFlavorSupported(DataFlavor flavor)
          Deprecated.  
 Object FileTransferable.getTransferData(DataFlavor flavor)
          Deprecated.  
 MRJOSType OSTypeToMimeMapper.unmapFlavor(DataFlavor flavor)
          Deprecated. Maps a MIME type back to the OSType of the flavor that contains its data.
 int FlaggedTransferable.getDataFlavorFlags(DataFlavor flavor)
          Deprecated. Returns the flags associated with a particular data flavor.
 

Constructors in com.apple.mrj.datatransfer with parameters of type DataFlavor
Translation(DataFlavor src, DataFlavor dst)
          Deprecated. Creates a Translation from the src flavor to the dst.
 

Uses of DataFlavor in com.apple.mrj.dnd
 

Methods in com.apple.mrj.dnd that return DataFlavor
 DataFlavor Drag.findItemFlavor(int index, DataFlavor[] flavors)
          Deprecated. Utility that determines whether an item contains at least one of the given flavors and returns the first of the given flavors that it finds, otherwise zero.
 

Methods in com.apple.mrj.dnd with parameters of type DataFlavor
 boolean Drag.allItemsContainFlavors(DataFlavor[] flavors)
          Deprecated. Utility that returns true if all of the items in the drag contain at least one of the flavors in the given array.
 DataFlavor Drag.findItemFlavor(int index, DataFlavor[] flavors)
          Deprecated. Utility that determines whether an item contains at least one of the given flavors and returns the first of the given flavors that it finds, otherwise zero.
 

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
static DataFlavor DataFlavor.getTextPlainUnicodeFlavor()
           
static DataFlavor DataFlavor.selectBestTextFlavor(DataFlavor[] availableFlavors)
           
 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)
           
 

Methods in java.awt.datatransfer with parameters of type DataFlavor
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
 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)
           
 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 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)
          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.
 


JavaTM 2 Platform
Std. Ed. v1.3.1

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.