Class AbstractColorPickerConnector

    • Constructor Detail

      • AbstractColorPickerConnector

        public AbstractColorPickerConnector()
    • Method Detail

      • delegateCaptionHandling

        public boolean delegateCaptionHandling()
        Description copied from interface: ComponentConnector
        Return true if parent handles caption, false if the paintable handles the caption itself.

        This should always return true and all components should let the parent handle the caption and use other attributes for internal texts in the component

        Specified by:
        delegateCaptionHandling in interface ComponentConnector
        Overrides:
        delegateCaptionHandling in class AbstractComponentConnector
        Returns:
        true if caption handling is delegated to the parent, false if parent should not be allowed to render caption
      • init

        public void init()
        Description copied from class: AbstractConnector
        Called when the connector has been initialized. Override this method to perform initialization of the connector.
        Overrides:
        init in class AbstractConnector
      • getCaption

        protected String getCaption()
        Get caption for the color picker widget.
        Returns:
        the caption
      • refreshDefaultCaptionStyle

        protected void refreshDefaultCaptionStyle()
        Add/remove default caption style.
      • setCaption

        protected abstract void setCaption​(String caption)
        Set caption of the color picker widget.
        Parameters:
        caption - the caption to set
      • refreshColor

        protected abstract void refreshColor()
        Update the widget to show the currently selected color.