java.awt.datatransfer
Interface FlavorTable

All Superinterfaces:
FlavorMap
All Known Implementing Classes:
SystemFlavorMap

public interface FlavorTable
extends FlavorMap

A FlavorMap which no longer requires a 1-to-1 mapping between flavors. Any native can map to multiple flavors, and any flavor can map to multiple natives; although the mappings are usually symmetric.

Since:
1.4

Method Summary
 List<DataFlavor> getFlavorsForNative(String name)
          Returns a list of flavors corresponding to the given String native.
 List<String> getNativesForFlavor(DataFlavor flavor)
          Returns a list of String natives corresponding to the given flavor.
 
Methods inherited from interface java.awt.datatransfer.FlavorMap
getFlavorsForNatives, getNativesForFlavors
 

Method Detail

getNativesForFlavor

List<String> getNativesForFlavor(DataFlavor flavor)
Returns a list of String natives corresponding to the given flavor. The list should be sorted from best to worst. The list must be modifiable without affecting this table.

Parameters:
flavor - the flavor to look up, or null to return all natives
Returns:
the sorted list of natives

getFlavorsForNative

List<DataFlavor> getFlavorsForNative(String name)
Returns a list of flavors corresponding to the given String native. The list should be sorted from best to worst. The list must be modifiable without affecting this table.

Parameters:
name - the native name to look up, or null to return all flavors
Returns:
the sorted list of flavors