Interface HasColorUpdatedHandlers

All Superinterfaces:
HasHandlers
All Known Implementing Classes:
ColorPicker

public interface HasColorUpdatedHandlers extends HasHandlers
  • Method Details

    • addColorUpdatedHandler

      HandlerRegistration addColorUpdatedHandler(ColorUpdatedHandler handler)
      Notification fired in real-time as the user manipulates the color picker (dragging the crosshair, adjusting sliders, typing in fields). The color parameter is an Color object; when supportsTransparency is true it carries the current alpha, otherwise alpha is always 1.

      This is the preferred replacement for ColorPicker.colorChanged(), which passes no parameters and requires the caller to use getter methods.

      Parameters:
      handler - the colorUpdated handler
      Returns:
      HandlerRegistration used to remove this handler