Interface ColorPickedHandler

All Superinterfaces:
EventHandler

public interface ColorPickedHandler extends EventHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notification fired when the user commits a color selection - either by clicking a swatch in simple mode or clicking OK in complex mode.
  • Method Details

    • onColorPicked

      void onColorPicked(ColorPickedEvent event)
      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:
      event - the event