Class BooleanOptionUI

    • Field Detail

      • box

        private final javax.swing.JCheckBox box
    • Constructor Detail

      • BooleanOptionUI

        public BooleanOptionUI​(BooleanOption option,
                               boolean editable)
        Creates a new BooleanOptionUI for the given BooleanOption.
        Parameters:
        option - The BooleanOption to make a user interface for.
        editable - Whether user can modify the setting.
    • Method Detail

      • setValue

        public void setValue​(boolean b)
        Sets the value of this UI's component.
        Parameters:
        b - The new boolean value.
      • getValue

        public boolean getValue()
      • addActionListener

        public void addActionListener​(java.awt.event.ActionListener actionListener)
      • removeActionListener

        public void removeActionListener​(java.awt.event.ActionListener actionListener)
      • getComponent

        public javax.swing.JCheckBox getComponent()
        Get the Component used to set the value of the Option.
        Specified by:
        getComponent in class OptionUI<BooleanOption>
        Returns:
        a JComponent value