Interface ColorChooser.OnColorActivated

Enclosing class:
ColorChooser
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ColorChooser.OnColorActivated
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emitted when a color is activated from the color chooser.
  • Method Details

    • onColorActivated

      void onColorActivated(@Nonnull RGBA color)
      Emitted when a color is activated from the color chooser.

      This usually happens when the user clicks a color swatch,
      or a color is selected and the user presses one of the keys
      Space, Shift+Space, Return or Enter.
      Parameters:
      color - the color