Class AbstractColorPicker

    • Field Detail

      • color

        protected Color color
        Deprecated.
        The color.
      • popupCaption

        protected String popupCaption
        Deprecated.
      • rgbVisible

        protected boolean rgbVisible
        Deprecated.
      • hsvVisible

        protected boolean hsvVisible
        Deprecated.
      • swatchesVisible

        protected boolean swatchesVisible
        Deprecated.
      • historyVisible

        protected boolean historyVisible
        Deprecated.
      • textfieldVisible

        protected boolean textfieldVisible
        Deprecated.
    • Constructor Detail

      • AbstractColorPicker

        public AbstractColorPicker()
        Deprecated.
        Instantiates a new color picker.
      • AbstractColorPicker

        public AbstractColorPicker​(String popupCaption)
        Deprecated.
        Instantiates a new color picker.
        Parameters:
        popupCaption - the caption of the popup window
      • AbstractColorPicker

        public AbstractColorPicker​(String popupCaption,
                                   Color initialColor)
        Deprecated.
        Instantiates a new color picker.
        Parameters:
        popupCaption - the caption of the popup window
        initialColor - the initial color
    • Method Detail

      • setColor

        public void setColor​(Color color)
        Deprecated.
        Description copied from interface: ColorSelector
        Sets the color.
        Specified by:
        setColor in interface ColorSelector
        Parameters:
        color - the new color
      • setDefaultCaptionEnabled

        public void setDefaultCaptionEnabled​(boolean enabled)
        Deprecated.
        Set true if the component should show a default caption (css-code for the currently selected color, e.g. #ffffff) when no other caption is available.
        Parameters:
        enabled -
      • isDefaultCaptionEnabled

        public boolean isDefaultCaptionEnabled()
        Deprecated.
        Returns true if the component shows the default caption (css-code for the currently selected color, e.g. #ffffff) if no other caption is available.
      • setPosition

        public void setPosition​(int x,
                                int y)
        Deprecated.
        Sets the position of the popup window.
        Parameters:
        x - the x-coordinate
        y - the y-coordinate
      • colorChanged

        protected void colorChanged​(ColorChangeEvent event)
        Deprecated.
        Fired when a color change event occurs.
        Parameters:
        event - The color change event
      • fireColorChanged

        public void fireColorChanged()
        Deprecated.
        Notifies the listeners that the selected color has changed.
      • setPopupStyle

        public void setPopupStyle​(AbstractColorPicker.PopupStyle style)
        Deprecated.
        The style for the popup window.
        Parameters:
        style - The style
      • getPopupStyle

        public AbstractColorPicker.PopupStyle getPopupStyle()
        Deprecated.
        Gets the style for the popup window.
        Returns:
        popup window style
        Since:
        7.5.0
      • setRGBVisibility

        public void setRGBVisibility​(boolean visible)
        Deprecated.
        Set the visibility of the RGB Tab.
        Parameters:
        visible - The visibility
      • getRGBVisibility

        public boolean getRGBVisibility()
        Deprecated.
        Gets the visibility of the RGB Tab.
        Returns:
        visibility of the RGB tab
        Since:
        7.5.0
      • setHSVVisibility

        public void setHSVVisibility​(boolean visible)
        Deprecated.
        Set the visibility of the HSV Tab.
        Parameters:
        visible - The visibility
      • getHSVVisibility

        public boolean getHSVVisibility()
        Deprecated.
        Gets the visibility of the HSV Tab.
        Returns:
        visibility of the HSV tab
        Since:
        7.5.0
      • setSwatchesVisibility

        public void setSwatchesVisibility​(boolean visible)
        Deprecated.
        Set the visibility of the Swatches Tab.
        Parameters:
        visible - The visibility
      • getSwatchesVisibility

        public boolean getSwatchesVisibility()
        Deprecated.
        Gets the visibility of the Swatches Tab.
        Returns:
        visibility of the swatches tab
        Since:
        7.5.0
      • setHistoryVisibility

        public void setHistoryVisibility​(boolean visible)
        Deprecated.
        Sets the visibility of the Color History.
        Parameters:
        visible - The visibility
      • getHistoryVisibility

        public boolean getHistoryVisibility()
        Deprecated.
        Gets the visibility of the Color History.
        Returns:
        visibility of color history
        Since:
        7.5.0
      • setTextfieldVisibility

        public void setTextfieldVisibility​(boolean visible)
        Deprecated.
        Sets the visibility of the CSS color code text field.
        Parameters:
        visible - The visibility
      • getTextfieldVisibility

        public boolean getTextfieldVisibility()
        Deprecated.
        Gets the visibility of CSS color code text field.
        Returns:
        visibility of css color code text field
        Since:
        7.5.0
      • setDefaultStyles

        protected abstract void setDefaultStyles()
        Deprecated.
        Sets the default styles of the component.
      • showPopup

        public void showPopup()
        Deprecated.
        Shows a popup-window for color selection.
      • hidePopup

        public void hidePopup()
        Deprecated.
        Hides a popup-window for color selection.
      • showPopup

        protected void showPopup​(boolean open)
        Deprecated.
        Shows or hides popup-window depending on the given parameter. If there is no such window yet, one is created.
        Parameters:
        open -
      • setHtmlContentAllowed

        @Deprecated
        public void setHtmlContentAllowed​(boolean htmlContentAllowed)
        Deprecated.
        Set whether the caption text is rendered as HTML or not. You might need to re-theme component to allow higher content than the original text style. If set to true, the captions are passed to the browser as html and the developer is responsible for ensuring no harmful html is used. If set to false, the content is passed to the browser as plain text.
        Parameters:
        htmlContentAllowed - true if caption is rendered as HTML, false otherwise
      • isHtmlContentAllowed

        @Deprecated
        public boolean isHtmlContentAllowed()
        Deprecated.
        Return HTML rendering setting.
        Returns:
        true if the caption text is to be rendered as HTML, false otherwise