Package rma.swing

Class RmaJColorComboBox2

All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, ItemSelectable, MenuContainer, Serializable, EventListener, Accessible, ListDataListener, Modifiable, EditableComponent, FormManagementListener, RmaValidComponent

public class RmaJColorComboBox2 extends RmaJComboBox
extension of the RmaJComboBox that renders colors. This class exists along with the RmaJColorComboBox because it was too hard to figure out if changing the ComboBoxModel would affect any of the all ready existing thousands of classes that might rely on the RmaJColorComboBox having a DefaultComboBoxModel.
See Also:
  • Constructor Details

    • RmaJColorComboBox2

      public RmaJColorComboBox2()
  • Method Details

    • setSelectedItem

      public void setSelectedItem(Object item)
      Overrides:
      setSelectedItem in class RmaJComboBox
    • setModel

      public void setModel()
    • setAllowsCustomColor

      public void setAllowsCustomColor(boolean allowCustom)
      add the custom color choice to the combobox
      Parameters:
      allowCustom -
    • getSelectedColor

      public Color getSelectedColor()
    • getSelectedColorName

      public String getSelectedColorName()
    • setSelectedColorName

      public void setSelectedColorName(String name)
    • setSelectedColor

      public void setSelectedColor(Color color)
    • getToolTipText

      public String getToolTipText()
      Overrides:
      getToolTipText in class JComponent