Class TetraStateCheckBox

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants
Direct Known Subclasses:
CheckBoxNode

public class TetraStateCheckBox extends JCheckBox
See Also:
  • Field Details

  • Constructor Details

    • TetraStateCheckBox

      public TetraStateCheckBox(String text, Icon icon, int color)
    • TetraStateCheckBox

      public TetraStateCheckBox(String text)
    • TetraStateCheckBox

      public TetraStateCheckBox()
  • Method Details

    • setColor

      public void setColor(int color)
      Set the new state to either SELECTED, NOT_SELECTED or DONT_CARE. If state == null, it is treated as DONT_CARE.
    • getColor

      public int getColor()
      Return the current state, which is determined by the selection status of the model.