Class CheckBoxOption

    • Constructor Detail

      • CheckBoxOption

        protected CheckBoxOption​(@NotNull
                                 @NotNull java.lang.String tooltipText)
        Creates a new instance.
        Parameters:
        tooltipText - the tooltip text to explain this option
    • Method Detail

      • isChecked

        public boolean isChecked()
        Returns the current state.
        Returns:
        the current state
      • setChecked

        public void setChecked​(boolean checked)
        Sets the current state.
        Parameters:
        checked - the new state
      • toggleChecked

        public void toggleChecked()
        Toggles the checked state.
      • execute

        protected abstract void execute​(boolean checked)
        Executes the action associated with this check box option. Must be implemented in sub-classes.
        Parameters:
        checked - whether the check box option is checked
      • fireStateChangedEvent

        protected void fireStateChangedEvent()
        Description copied from class: Option
        Notifies all listeners that the state has changed.
        Overrides:
        fireStateChangedEvent in class Option
      • isDefaultChecked

        public abstract boolean isDefaultChecked()
        Returns the default value of isChecked().
        Returns:
        the default value
      • getTooltipText

        @NotNull
        public @NotNull java.lang.String getTooltipText()
        Returns the tooltip text to explain this option.
        Returns:
        the tooltip text