Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Interface java.awt.dnd.FlavorMap


public interface FlavorMap

The FlavorMap is an interface to a map that maps platform native type names (strings) to MIME type strings, and also their associated DataFlavors.

This map is used by the DnD system to map platform data types to MIME types to enable the transfer of objects between Java and the platform via the platform DnD System.

Since:
JDK1.2
See Also:
java.awt.dnd.SystemFlavorMap

Method Summary
Map  getFlavorsForNatives(String[] natives)
map natives to corresponding flavors
Map  getNativesForFlavors(DataFlavor[] flavors)
map flavors to native data types names
 

Method Detail

getNativesForFlavors

public Map getNativesForFlavors(DataFlavor[] flavors)
map flavors to native data types names
Parameters:
flavors - The array of DataFlavors to map to native types
Returns:
a Map object which contains between 0 or more entries with keys of type DataFlavor and values of type String, where the String values mapped (if any) are the native (platform dependent) data type name corresponding to the (platform independent) DataFlavor (MimeType). The Map returned is mutable and considered to be owned by the caller, thus allowing "nesting" of FlavorMap implementations.

getFlavorsForNatives

public Map getFlavorsForNatives(String[] natives)
map natives to corresponding flavors
Parameters:
native - The array of String native types to map to DataFlavors
Returns:
a Map object which contains 0 or more entries with keys of type String and values of type DataFlavor, where the DataFlavor values mapped (if any) are the (platform independent) types corresponding to their native (platform dependent) data type names. The Map returned is mutable and considered to be owned by the caller, thus allowing "nesting" of FlavorMap implementations.

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
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.