Package com.smartgwt.client.widgets.form.events

# Interface HasColorPickedHandlers

All Superinterfaces:
  `HasHandlers`

All Known Implementing Classes:
  `ColorPicker`

public interface HasColorPickedHandlers extends HasHandlers

- ## Method Summary

  Modifier and Type
  Method
  Description
  `HandlerRegistration`
  `addColorPickedHandler(ColorPickedHandler handler)`
  Notification fired when the user commits a color selection - either by clicking a swatch in `simple mode` or clicking OK in complex mode.

  ### Methods inherited from interface com.google.gwt.event.shared.HasHandlers

  `fireEvent`

- ## Method Details

  - ### addColorPickedHandler

    HandlerRegistration addColorPickedHandler(ColorPickedHandler handler)
    Notification fired when the user commits a color selection - either by clicking a swatch in `simple mode` or clicking OK in complex mode. The `color` parameter is an `Color` object; when `supportsTransparency` is 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 `ColorPicker` may automatically hide itself after calling this method depending on `autoHide` and `defaultPickMode`.

    Parameters:
      `handler` - the colorPicked handler
    Returns:
      `HandlerRegistration` used to remove this handler