Class ColorChooser

    • Constructor Detail

      • ColorChooser

        public ColorChooser()
    • Method Detail

      • getSelectedColor

        public java.awt.Color getSelectedColor()
        Returns:
        The currently selected color, or null if no color is selected.
      • setSelectedColor

        public void setSelectedColor​(java.awt.Color selectedColor)
        Sets the selected color.
        Parameters:
        selectedColor - The color to select, or null to clear the selection.
      • setSelectedColor

        public void setSelectedColor​(java.lang.String selectedColor)
        Sets the selected color.
        Parameters:
        selectedColor - The color to select, or null to clear the selection.
      • getSelectedColorKey

        public java.lang.String getSelectedColorKey()
        Returns:
        The data binding key that is set on this color chooser.
      • setSelectedColorKey

        public void setSelectedColorKey​(java.lang.String selectedColorKey)
        Sets this color chooser's data binding key.
        Parameters:
        selectedColorKey - The binding key for the selected color.
      • getSelectedColorBindType

        public BindType getSelectedColorBindType()
      • setSelectedColorBindType

        public void setSelectedColorBindType​(BindType selectedColorBindType)
      • load

        public void load​(java.lang.Object context)
        Loads the selected color from the specified bind context using this color chooser's bind key, if one is set.
        Overrides:
        load in class Container
        Parameters:
        context - The object we're binding to.
      • store

        public void store​(java.lang.Object context)
        Stores the selected color into the specified bind context using this color chooser's bind key, if one is set.
        Overrides:
        store in class Container
        Parameters:
        context - The object we're binding to.
      • clear

        public void clear()
        If a bind key is set, clears the selected color.
        Overrides:
        clear in class Container