| Package | Description |
|---|---|
| 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.accessibility |
Defines a contract between user-interface components and an assistive technology that provides access to those components.
|
| javax.activation | |
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| Modifier and Type | Field and Description |
|---|---|
static DataFlavor |
DataFlavor.allHtmlFlavor
Represents a piece of an HTML markup.
|
static DataFlavor |
DataFlavor.fragmentHtmlFlavor
Represents a piece of an HTML markup.
|
static DataFlavor |
DataFlavor.imageFlavor
The
DataFlavor representing a Java Image class, where:
|
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.
|
static DataFlavor |
DataFlavor.plainTextFlavor
Deprecated.
as of 1.3. Use
DataFlavor.getReaderForText(Transferable) instead of Transferable.getTransferData(DataFlavor.plainTextFlavor).
|
static DataFlavor |
DataFlavor.selectionHtmlFlavor
Represents a piece of an HTML markup.
|
static DataFlavor |
DataFlavor.stringFlavor
The
DataFlavor representing a Java Unicode String class, where:
|
| Modifier and Type | Method and Description |
|---|---|
static DataFlavor |
SystemFlavorMap.decodeDataFlavor(String
Decodes a
String native for use as a
DataFlavor.
|
DataFlavor |
Clipboard.getAvailableDataFlavors()
Returns an array of
DataFlavors in which the current contents of this clipboard can be provided.
|
static DataFlavor |
DataFlavor.getTextPlainUnicodeFlavor()
Returns a
DataFlavor representing plain text with Unicode encoding, where:
|
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.selectBestTextFlavor(DataFlavor
Selects the best text
DataFlavor from an array of
DataFlavors.
|
| Modifier and Type | Method and Description |
|---|---|
List |
FlavorTable.getFlavorsForNative(String
Returns a
List of
DataFlavors to which the specified
String corresponds.
|
List |
SystemFlavorMap.getFlavorsForNative(String
Returns a
List of
DataFlavors to which the specified
String native can be translated by the data transfer subsystem.
|
Map |
SystemFlavorMap.getFlavorsForNatives(String
Returns a
Map of the specified
String natives to their most preferred
DataFlavor.
|
Map |
FlavorMap.getFlavorsForNatives(String
Returns a
Map of the specified
String natives to their corresponding
DataFlavor.
|
Map |
SystemFlavorMap.getNativesForFlavors(DataFlavor
Returns a
Map of the specified
DataFlavors to their most preferred
String native.
|
Map |
FlavorMap.getNativesForFlavors(DataFlavor
Returns a
Map of the specified
DataFlavors to their corresponding
String native.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SystemFlavorMap.addFlavorForUnencodedNative(String
Adds a mapping from a single
String native to a single
DataFlavor.
|
void |
SystemFlavorMap.addUnencodedNativeForFlavor(DataFlavor
Adds a mapping from the specified
DataFlavor (and all
DataFlavors equal to the specified
DataFlavor) to the specified
String native.
|
static String |
SystemFlavorMap.encodeDataFlavor(DataFlavor
Encodes a
DataFlavor for use as a
String native.
|
boolean |
DataFlavor.equals(DataFlavor
This method has the same behavior as
equals(Object).
|
Object |
Clipboard.getData(DataFlavor
Returns an object representing the current contents of this clipboard in the specified
DataFlavor.
|
List |
FlavorTable.getNativesForFlavor(DataFlavor
Returns a
List of
String natives to which the specified
DataFlavor corresponds.
|
List |
SystemFlavorMap.getNativesForFlavor(DataFlavor
Returns a
List of
String natives to which the specified
DataFlavor can be translated by the data transfer subsystem.
|
Map |
SystemFlavorMap.getNativesForFlavors(DataFlavor
Returns a
Map of the specified
DataFlavors to their most preferred
String native.
|
Map |
FlavorMap.getNativesForFlavors(DataFlavor
Returns a
Map of the specified
DataFlavors to their corresponding
String native.
|
Object |
StringSelection.getTransferData(DataFlavor
Returns the
Transferable's data in the requested
DataFlavor if possible.
|
Object |
Transferable.getTransferData(DataFlavor
Returns an object which represents the data to be transferred.
|
boolean |
Clipboard.isDataFlavorAvailable(DataFlavor
Returns whether or not the current contents of this clipboard can be provided in the specified
DataFlavor.
|
boolean |
StringSelection.isDataFlavorSupported(DataFlavor
Returns whether the requested flavor is supported by this
Transferable.
|
boolean |
Transferable.isDataFlavorSupported(DataFlavor
Returns whether or not the specified data flavor is supported for this object.
|
boolean |
DataFlavor.isMimeTypeEqual(DataFlavor
Compares the
mimeType of two
DataFlavor objects.
|
boolean |
DataFlavor.match(DataFlavor
Identical to
equals(DataFlavor).
|
static DataFlavor |
DataFlavor.selectBestTextFlavor(DataFlavor
Selects the best text
DataFlavor from an array of
DataFlavors.
|
void |
SystemFlavorMap.setFlavorsForNative(String
Discards the current mappings for the specified
String native, and creates new mappings to the specified
DataFlavors.
|
void |
SystemFlavorMap.setNativesForFlavor(DataFlavor
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.
|
| Constructor and Description | |
|---|---|
UnsupportedFlavorException(DataFlavor
Constructs an UnsupportedFlavorException.
|
| Modifier and Type | Method and Description |
|---|---|
DataFlavor |
DropTargetDragEvent.getCurrentDataFlavors()
This method returns the current
DataFlavors from the
DropTargetContext.
|
protected DataFlavor |
DropTargetContext.getCurrentDataFlavors()
get the available DataFlavors of the
Transferable operand of this operation.
|
DataFlavor |
DropTargetDropEvent.getCurrentDataFlavors()
This method returns the current DataFlavors.
|
DataFlavor |
DropTargetContext.TransferableProxy.getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data can be provided in by the encapsulated transferable.
|
| Modifier and Type | Method and Description |
|---|---|
List |
DropTargetDragEvent.getCurrentDataFlavorsAsList()
This method returns the current
DataFlavors as a
java.util.List
|
protected List |
DropTargetContext.getCurrentDataFlavorsAsList()
This method returns a the currently available DataFlavors of the
Transferable operand as a
java.util.List.
|
List |
DropTargetDropEvent.getCurrentDataFlavorsAsList()
This method returns the currently available
DataFlavors as a
java.util.List.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
DropTargetContext.TransferableProxy.getTransferData(DataFlavor
Returns an object which represents the data provided by the encapsulated transferable for the requested data flavor.
|
boolean |
DropTargetDragEvent.isDataFlavorSupported(DataFlavor
This method returns a
boolean indicating if the specified
DataFlavor is supported.
|
protected boolean |
DropTargetContext.isDataFlavorSupported(DataFlavor
This method returns a
boolean indicating if the given
DataFlavor is supported by this
DropTargetContext.
|
boolean |
DropTargetContext.TransferableProxy.isDataFlavorSupported(DataFlavor
Returns whether or not the specified data flavor is supported by the encapsulated transferable.
|
boolean |
DropTargetDropEvent.isDataFlavorSupported(DataFlavor
This method returns a
boolean indicating if the specified
DataFlavor is available from the source.
|
| Modifier and Type | Method and Description |
|---|---|
DataFlavor |
AccessibleStreamable.getMimeTypes()
Returns an array of DataFlavor objects for the MIME types this object supports.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
AccessibleStreamable.getStream(DataFlavor
Returns an InputStream for a DataFlavor
|
| Modifier and Type | Class and Description |
|---|---|
class |
ActivationDataFlavor
The ActivationDataFlavor class is a special subclass of
java.awt.datatransfer.DataFlavor.
|
| Modifier and Type | Method and Description |
|---|---|
DataFlavor |
DataContentHandler.getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data can be provided in.
|
DataFlavor |
DataHandler.getTransferDataFlavors()
Return the DataFlavors in which this data is available.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ActivationDataFlavor.equals(DataFlavor
Compares the DataFlavor passed in with this DataFlavor; calls the
isMimeTypeEqual method.
|
Object |
DataHandler.getTransferData(DataFlavor
Returns an object that represents the data to be transferred.
|
Object |
DataContentHandler.getTransferData(DataFlavor
Returns an object which represents the data to be transferred.
|
boolean |
DataHandler.isDataFlavorSupported(DataFlavor
Returns whether the specified data flavor is supported for this object.
|
| Modifier and Type | Method and Description |
|---|---|
DataFlavor |
TransferHandler.TransferSupport.getDataFlavors()
Returns the data flavors for this transfer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TransferHandler.canImport(JComponent
Indicates whether a component will accept an import of the given set of data flavors prior to actually attempting to import it.
|
boolean |
TransferHandler.TransferSupport.isDataFlavorSupported(DataFlavor
Returns whether or not the given data flavor is supported.
|