Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.datatransfer.SystemFlavorMap
The SystemFlavorMap is an externally configurable 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.
Method Summary | |
static DataFlavor |
decodeDataFlavor(String atom)
|
static String |
decodeJavaMIMEType(String atom)
|
static String |
encodeDataFlavor(DataFlavor df)
|
static String |
encodeJavaMIMEType(String mimeType)
|
static FlavorMap |
getDefaultFlavorMap()
get the default system implementation |
Map |
getFlavorsForNatives(String[] natives)
map natives to corresponding flavors |
Map |
getNativesForFlavors(DataFlavor[] flavors)
map flavors to native data types names |
static boolean |
isJavaMIMEType(String atom)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static FlavorMap getDefaultFlavorMap()
public Map getNativesForFlavors(DataFlavor[] flavors)
getNativesForFlavors
in interface FlavorMap
java.awt.datatransfer.FlavorMap
flavors
- The array of DataFlavors to map to native types, or nullpublic Map getFlavorsForNatives(String[] natives)
getFlavorsForNatives
in interface FlavorMap
java.awt.datatransfer.FlavorMap
native
- The array of String native types to map to DataFlavors, or nullpublic static String encodeJavaMIMEType(String mimeType)
public static String encodeDataFlavor(DataFlavor df)
public static boolean isJavaMIMEType(String atom)
public static String decodeJavaMIMEType(String atom)
public static DataFlavor decodeDataFlavor(String atom) throws ClassNotFoundException
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.