java.awt.datatransfer

Interface FlavorTable

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

UNKNOWN: updated to 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.

Method Detail

getFlavorsForNative

public 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

getNativesForFlavor

public 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