Class CommandCheckBoxOption

    • Constructor Detail

      • CommandCheckBoxOption

        public CommandCheckBoxOption​(@NotNull
                                     @NotNull CommandList commandOn,
                                     @NotNull
                                     @NotNull CommandList commandOff,
                                     @NotNull
                                     @NotNull java.lang.String tooltipText)
        Creates a new instance.
        Parameters:
        commandOn - the command list to execute when checked
        commandOff - the command list to execute when unchecked
        tooltipText - the tooltip text to explain this option
    • Method Detail

      • execute

        protected void execute​(boolean checked)
        Description copied from class: CheckBoxOption
        Executes the action associated with this check box option. Must be implemented in sub-classes.
        Specified by:
        execute in class CheckBoxOption
        Parameters:
        checked - whether the check box option is checked