Uses of Class
java.awt.datatransfer.DataFlavor
Packages that use DataFlavor
Package
Description
Provides interfaces and classes for transferring data between and within
applications.
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.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
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 DataFlavorModifier and TypeFieldDescriptionstatic final DataFlavorDataFlavor.allHtmlFlavorRepresents a piece of an HTML markup.static final DataFlavorDataFlavor.fragmentHtmlFlavorRepresents a piece of an HTML markup.static final DataFlavorDataFlavor.imageFlavorTheDataFlavorrepresenting a Java Image class, where:static final DataFlavorDataFlavor.javaFileListFlavorTo transfer a list of files to/from Java (and the underlying platform) aDataFlavorof this type/subtype and representation class ofjava.util.Listis used.static final DataFlavorDataFlavor.plainTextFlavorDeprecated.as of 1.3.static final DataFlavorDataFlavor.selectionHtmlFlavorRepresents a piece of an HTML markup.static final DataFlavorDataFlavor.stringFlavorTheDataFlavorrepresenting a Java Unicode String class, where:Methods in java.awt.datatransfer that return DataFlavorModifier and TypeMethodDescriptionstatic DataFlavorSystemFlavorMap.decodeDataFlavor(String nat) Decodes aStringnative for use as aDataFlavor.Clipboard.getAvailableDataFlavors()Returns an array ofDataFlavors in which the current contents of this clipboard can be provided.static final DataFlavorDataFlavor.getTextPlainUnicodeFlavor()Returns aDataFlavorrepresenting plain text with Unicode encoding, where:StringSelection.getTransferDataFlavors()Returns an array of flavors in which thisTransferablecan provide the data.Transferable.getTransferDataFlavors()Returns an array of DataFlavor objects indicating the flavors the data can be provided in.static final DataFlavorDataFlavor.selectBestTextFlavor(DataFlavor[] availableFlavors) Selects the best textDataFlavorfrom an array ofDataFlavors.Methods in java.awt.datatransfer that return types with arguments of type DataFlavorModifier and TypeMethodDescriptionFlavorTable.getFlavorsForNative(String nat) Returns aListofDataFlavors to which the specifiedStringcorresponds.SystemFlavorMap.getFlavorsForNative(String nat) Returns aListofDataFlavors to which the specifiedStringnative can be translated by the data transfer subsystem.FlavorMap.getFlavorsForNatives(String[] natives) Returns aMapof the specifiedStringnatives to their correspondingDataFlavor.SystemFlavorMap.getFlavorsForNatives(String[] natives) Returns aMapof the specifiedStringnatives to their most preferredDataFlavor.FlavorMap.getNativesForFlavors(DataFlavor[] flavors) Returns aMapof the specifiedDataFlavors to their correspondingStringnative.SystemFlavorMap.getNativesForFlavors(DataFlavor[] flavors) Returns aMapof the specifiedDataFlavors to their most preferredStringnative.Methods in java.awt.datatransfer with parameters of type DataFlavorModifier and TypeMethodDescriptionvoidSystemFlavorMap.addFlavorForUnencodedNative(String nat, DataFlavor flav) Adds a mapping from a singleStringnative to a singleDataFlavor.voidSystemFlavorMap.addUnencodedNativeForFlavor(DataFlavor flav, String nat) Adds a mapping from the specifiedDataFlavor(and allDataFlavors equal to the specifiedDataFlavor) to the specifiedStringnative.static StringSystemFlavorMap.encodeDataFlavor(DataFlavor flav) Encodes aDataFlavorfor use as aStringnative.booleanDataFlavor.equals(DataFlavor that) This method has the same behavior asequals(Object).Clipboard.getData(DataFlavor flavor) Returns an object representing the current contents of this clipboard in the specifiedDataFlavor.FlavorTable.getNativesForFlavor(DataFlavor flav) Returns aListofStringnatives to which the specifiedDataFlavorcorresponds.SystemFlavorMap.getNativesForFlavor(DataFlavor flav) Returns aListofStringnatives to which the specifiedDataFlavorcan be translated by the data transfer subsystem.FlavorMap.getNativesForFlavors(DataFlavor[] flavors) Returns aMapof the specifiedDataFlavors to their correspondingStringnative.SystemFlavorMap.getNativesForFlavors(DataFlavor[] flavors) Returns aMapof the specifiedDataFlavors to their most preferredStringnative.StringSelection.getTransferData(DataFlavor flavor) Returns theTransferable's data in the requestedDataFlavorif possible.Transferable.getTransferData(DataFlavor flavor) Returns an object which represents the data to be transferred.booleanClipboard.isDataFlavorAvailable(DataFlavor flavor) Returns whether or not the current contents of this clipboard can be provided in the specifiedDataFlavor.booleanStringSelection.isDataFlavorSupported(DataFlavor flavor) Returns whether the requested flavor is supported by thisTransferable.booleanTransferable.isDataFlavorSupported(DataFlavor flavor) Returns whether or not the specified data flavor is supported for this object.final booleanDataFlavor.isMimeTypeEqual(DataFlavor dataFlavor) Compares themimeTypeof twoDataFlavorobjects.booleanDataFlavor.match(DataFlavor that) Identical toequals(DataFlavor).static final DataFlavorDataFlavor.selectBestTextFlavor(DataFlavor[] availableFlavors) Selects the best textDataFlavorfrom an array ofDataFlavors.voidSystemFlavorMap.setFlavorsForNative(String nat, DataFlavor[] flavors) Discards the current mappings for the specifiedStringnative, and creates new mappings to the specifiedDataFlavors.voidSystemFlavorMap.setNativesForFlavor(DataFlavor flav, String[] natives) Discards the current mappings for the specifiedDataFlavorand allDataFlavors equal to the specifiedDataFlavor, and creates new mappings to the specifiedStringnatives.Constructors in java.awt.datatransfer with parameters of type DataFlavorModifierConstructorDescriptionUnsupportedFlavorException(DataFlavor flavor) Constructs an UnsupportedFlavorException. -
Uses of DataFlavor in java.awt.dnd
Methods in java.awt.dnd that return DataFlavorModifier and TypeMethodDescriptionprotected DataFlavor[]DropTargetContext.getCurrentDataFlavors()get the available DataFlavors of theTransferableoperand of this operation.DropTargetDragEvent.getCurrentDataFlavors()This method returns the currentDataFlavors from theDropTargetContext.DropTargetDropEvent.getCurrentDataFlavors()This method returns the current DataFlavors.DropTargetContext.TransferableProxy.getTransferDataFlavors()Returns an array of DataFlavor objects indicating the flavors the data can be provided in by the encapsulated transferable.Methods in java.awt.dnd that return types with arguments of type DataFlavorModifier and TypeMethodDescriptionprotected List<DataFlavor> DropTargetContext.getCurrentDataFlavorsAsList()This method returns the currently available DataFlavors of theTransferableoperand as ajava.util.List.DropTargetDragEvent.getCurrentDataFlavorsAsList()This method returns the currentDataFlavors as ajava.util.ListDropTargetDropEvent.getCurrentDataFlavorsAsList()This method returns the currently availableDataFlavors as ajava.util.List.Methods in java.awt.dnd with parameters of type DataFlavorModifier and TypeMethodDescriptionDropTargetContext.TransferableProxy.getTransferData(DataFlavor df) Returns an object which represents the data provided by the encapsulated transferable for the requested data flavor.protected booleanDropTargetContext.isDataFlavorSupported(DataFlavor df) This method returns abooleanindicating if the givenDataFlavoris supported by thisDropTargetContext.booleanDropTargetContext.TransferableProxy.isDataFlavorSupported(DataFlavor flavor) Returns whether or not the specified data flavor is supported by the encapsulated transferable.booleanDropTargetDragEvent.isDataFlavorSupported(DataFlavor df) This method returns abooleanindicating if the specifiedDataFlavoris supported.booleanDropTargetDropEvent.isDataFlavorSupported(DataFlavor df) This method returns abooleanindicating if the specifiedDataFlavoris available from the source. -
Uses of DataFlavor in javax.accessibility
Methods in javax.accessibility that return DataFlavorModifier and TypeMethodDescriptionAccessibleStreamable.getMimeTypes()Returns an array ofDataFlavorobjects for the MIME types this object supports.Methods in javax.accessibility with parameters of type DataFlavorModifier and TypeMethodDescriptionAccessibleStreamable.getStream(DataFlavor flavor) Returns anInputStreamfor aDataFlavor. -
Uses of DataFlavor in javax.swing
Methods in javax.swing that return DataFlavorModifier and TypeMethodDescriptionTransferHandler.TransferSupport.getDataFlavors()Returns the data flavors for this transfer.Methods in javax.swing with parameters of type DataFlavorModifier and TypeMethodDescriptionbooleanTransferHandler.canImport(JComponent comp, DataFlavor[] transferFlavors) Indicates whether a component will accept an import of the given set of data flavors prior to actually attempting to import it.booleanTransferHandler.TransferSupport.isDataFlavorSupported(DataFlavor df) Returns whether or not the given data flavor is supported.