Package com.ribs.plus

Class RJCheckBox

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class RJCheckBox extends JCheckBox
This is a JCheckBox subclass to support a "Three State" mode. In this mode (setThreeState(true)), you can getSelected/setSelected with a Boolean object (instead of the boolean primitive used in isSelected/setSelected). If the returned Boolean is null, this is the "Not Applicable" third state. Otherwise, you ask the Boolean for its booleanValue().

Copyright (c) 2004 ReportMill Software, Inc. All Rights Reserved. Contact ReportMill <info@reportmill.com>.

See Also:
  • Constructor Details

    • RJCheckBox

      public RJCheckBox()
      Creates a new RJCheckBox.
  • Method Details

    • isThreeState

      public boolean isThreeState()
      Returns whether this checkbox is operating in three state mode.
    • setThreeState

      public void setThreeState(boolean aFlag)
      Sets whether this checkbox is operating in three state mode.
    • getSelected

      public Boolean getSelected()
      Returns the selected state in the form of a Boolean object to provide three states (true, false, null).
    • setSelected

      public void setSelected(Boolean b)
      Sets the selected state in the form of a Boolean object to provide three states (true, false, null).
    • paintComponent

      public void paintComponent(Graphics g)
      Override paintComponent to support Three State drawing.
      Overrides:
      paintComponent in class JComponent