
Discards the current mappings for the specified
String
native, and creates new mappings to the specified
DataFlavors.

Discards the current mappings for the specified
String
native, and creates new mappings to the specified
DataFlavors. Unlike
getFlavorsForNative, the
mappings will only be established in one direction, and the natives need
not be encoded. To establish two-way mappings, call
setNativesForFlavor as well. The first
DataFlavor in the array will represent the highest priority
mapping. Subsequent
DataFlavors will represent mappings of
decreasing priority.
If the array contains several elements that reference equal
DataFlavors, this method will establish new mappings
for the first of those elements and ignore the rest of them.
It is recommended that client code not reset mappings established by the
data transfer subsystem. This method should only be used for
application-level mappings.
Parameters:
- nat - the String native key for the mappings
- flavors - the DataFlavor values for the mappings
Throws:
- NullPointerException - if nat or flavors is null
or if flavors contains null elements
Since:
1.4
See Also:
SystemFlavorMap.setNativesForFlavor(java.awt.datatransfer.DataFlavor, java.lang.String[]),