Class JaxoColorButton

    • Constructor Detail

      • JaxoColorButton

        public JaxoColorButton()
        with Color.black.
      • JaxoColorButton

        public JaxoColorButton​(Color c)
        with the given color.
        Parameters:
        c - The color of the button.
    • Method Detail

      • isOptional

        public boolean isOptional()
        Current optional property.
        Returns:
        The current optional value.
      • setOptional

        public void setOptional​(boolean value)
        Sets the optional property.
        Parameters:
        value - The value to set.
      • getColor

        public Color getColor()
        Current color property.
        Returns:
        The current color.
      • setColor

        public void setColor​(Color value)
        Sets the button color.
        Parameters:
        value - The color to set.
      • setChooserMode

        public void setChooserMode​(JaxoColor.Mode value)
        Sets the current chooser mode.
        Parameters:
        value - The mode to set.
      • setChooserTitle

        public void setChooserTitle​(String value)
        Sets the current chooser title.
        Parameters:
        value - The title.
      • getChooser

        public JaxoColorChooser getChooser()
        Chooser to be shown to change the current color automatically on ActionEvents. The default is 'null'.
        Returns:
        The chooser.
      • setChooser

        public void setChooser​(JaxoColorChooser value)
        Sets the chooser.
        Parameters:
        value - The chooser to set.
      • showChooser

        public void showChooser()
        Show the (existing) chooser programmatically, as if the button were clicked.