Class CheckBox

All Implemented Interfaces:
IFigure

public final class CheckBox extends Toggle
A Checkbox is a toggle figure which toggles between the checked and unchecked figures to simulate a check box. A check box contains a text label to represent it.
  • Constructor Details

    • CheckBox

      public CheckBox()
      Constructs a CheckBox with no text.
      Since:
      2.0
    • CheckBox

      public CheckBox(String text)
      Constructs a CheckBox with the passed text in its label.
      Parameters:
      text - The label text
      Since:
      2.0
  • Method Details

    • handleSelectionChanged

      protected void handleSelectionChanged()
      Adjusts CheckBox's icon depending on selection status.
      Since:
      2.0
    • init

      protected void init()
      Initializes this Clickable by setting a default model and adding a clickable event handler for that model. Also adds a ChangeListener to update icon when selection status changes.
      Overrides:
      init in class Clickable
      Since:
      2.0