Interface ColorPickedHandler
- All Superinterfaces:
EventHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidonColorPicked(ColorPickedEvent event) Notification fired when the user commits a color selection - either by clicking a swatch insimple modeor clicking OK in complex mode.
-
Method Details
-
onColorPicked
Notification fired when the user commits a color selection - either by clicking a swatch insimple modeor clicking OK in complex mode. Thecolorparameter is anColorobject; whensupportsTransparencyis true it carries the selected alpha, otherwise alpha is always 1.This is the preferred replacement for
ColorPicker.colorSelected(), which passes color and opacity as separate parameters.The
ColorPickermay automatically hide itself after calling this method depending onautoHideanddefaultPickMode.- Parameters:
event- the event
-