Interface HasColorPickedHandlers
- All Superinterfaces:
HasHandlers
- All Known Implementing Classes:
ColorPicker
-
Method Summary
Modifier and TypeMethodDescriptionaddColorPickedHandler(ColorPickedHandler handler) Notification fired when the user commits a color selection - either by clicking a swatch insimple modeor clicking OK in complex mode.Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Method Details
-
addColorPickedHandler
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:
handler- the colorPicked handler- Returns:
HandlerRegistrationused to remove this handler
-