public static ColorPickerListener prepareColorPickerListener(final ActorConsumer<?, Color> listener) {
        return new ColorPickerAdapter() {
            @Override
            public void canceled(final Color oldColor) {
                finished(oldColor);
            }

            @Override
            public void finished(final Color newColor) {
                listener.consume(newColor);
            }
        };
    }
public static ColorPickerListener prepareColorPickerListener ( final ActorConsumer < ? , Color > listener ) { return new ColorPickerAdapter ( ) { @ Override public void canceled ( final Color oldColor ) { finished ( oldColor ) ; } @ Override public void finished ( final Color newColor ) { listener . consume ( newColor ) ; } } ; }
@param listener a non-null method that consumes colors.
@return an instance of {@link ColorPickerListener} that should be attached to currently shown {@link ColorPicker}
instance.