Class ColorPickerGradient

    • Constructor Detail

    • Method Detail

      • getValue

        public Color getValue()
        Description copied from interface: HasValue
        Returns the current value of this object.

        Implementation note: the implementing class should document whether null values may be returned or not.

        Returns:
        the current value
      • doSetValue

        protected void doSetValue​(Color color)
        Description copied from class: AbstractField
        Sets the value of this field. May do sanitization or throw IllegalArgumentException if the value is invalid. Typically saves the value to shared state.
        Specified by:
        doSetValue in class AbstractField<Color>
        Parameters:
        color - the new value of the field
      • setBackgroundColor

        public void setBackgroundColor​(Color color)
        Sets the background color.
        Parameters:
        color - the new background color
      • getState

        protected ColorPickerGradientState getState()
        Description copied from class: AbstractComponent
        Returns the shared state bean with information to be sent from the server to the client. Subclasses should override this method and set any relevant fields of the state returned by super.getState().
        Overrides:
        getState in class AbstractField<Color>
        Returns:
        updated component shared state