Class ColorPickerSelect

    • Constructor Detail

      • ColorPickerSelect

        public ColorPickerSelect()
    • Method Detail

      • initContent

        protected Component initContent()
        Description copied from class: CustomField
        Create the content component or layout for the field. Subclasses of CustomField should implement this method. Note that this method is called when the CustomField is attached to a layout or when CustomField.getContent() is called explicitly for the first time. It is only called once for a CustomField.
        Specified by:
        initContent in class CustomField<Color>
        Returns:
        Component representing the UI of the CustomField
      • getValue

        public Color getValue()
        Returns the selected value.

        Value can be null if component is not yet initialized via initContent()

        Returns:
        the selected color, may be null
        See Also:
        initContent()
      • doSetValue

        protected void doSetValue​(Color value)
        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:
        value - the new value of the field