Java Platform 1.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 Provides interfaces and classes for supporting drag-and-drop operations. 
 

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: representationClass = java.lang.String
mimeType = "application/x-java-serialized-object"
static DataFlavor DataFlavor.plainTextFlavor
          The DataFlavor representing plain text with unicode encoding, where: representationClass = InputStream
mimeType = "text/plain; charset=unicode"
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[] StringSelection.getTransferDataFlavors()
          Returns the array of flavors in which it can provide the data.
static DataFlavor SystemFlavorMap.decodeDataFlavor(String atom)
           
 DataFlavor[] Transferable.getTransferDataFlavors()
          Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
 

Methods in java.awt.datatransfer with parameters of type DataFlavor
 boolean StringSelection.isDataFlavorSupported(DataFlavor flavor)
          Returns whether the requested flavor is supported by this object.
 Object StringSelection.getTransferData(DataFlavor flavor)
          If the data was requested in the "java.lang.String" flavor, return the String representing the selection.
 boolean DataFlavor.equals(DataFlavor dataFlavor)
           
 boolean DataFlavor.isMimeTypeEqual(DataFlavor dataFlavor)
           
 Map FlavorMap.getNativesForFlavors(DataFlavor[] flavors)
          map flavors to native data types names
 Map SystemFlavorMap.getNativesForFlavors(DataFlavor[] flavors)
          map flavors to native data types names
static String SystemFlavorMap.encodeDataFlavor(DataFlavor df)
           
 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.
 

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

Uses of DataFlavor in java.awt.dnd
 

Methods in java.awt.dnd that return DataFlavor
 DataFlavor[] DropTargetDragEvent.getCurrentDataFlavors()
           
 DataFlavor[] DropTargetDropEvent.getCurrentDataFlavors()
           
protected  DataFlavor[] DropTargetContext.getCurrentDataFlavors()
          get the available DataFlavors of the Transferable operand of this operation
 DataFlavor[] DropTargetContext.TransferableProxy.getTransferDataFlavors()
          get the flavors
 

Methods in java.awt.dnd with parameters of type DataFlavor
 boolean DropTargetDragEvent.isDataFlavorSupported(DataFlavor df)
           
 boolean DropTargetDropEvent.isDataFlavorSupported(DataFlavor df)
           
protected  boolean DropTargetContext.isDataFlavorSupported(DataFlavor df)
           
 boolean DropTargetContext.TransferableProxy.isDataFlavorSupported(DataFlavor flavor)
          check if a particular flavor is supported?
 Object DropTargetContext.TransferableProxy.getTransferData(DataFlavor df)
          get the transfer data
 


Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.