Sets the selected color to
color
.
Note that setting the color to
null
is undefined and may have unpredictable results.
This method fires a state changed event if it sets the
current color to a new non-
null
color;
if the new color is the same as the current color,
no event is fired.
Parameters:
-
color - the new
Color