public class CommandCheckBoxOption extends CheckBoxOption
CheckBoxOption
that executes CommandLists
when
checked/unchecked.Constructor and Description |
---|
CommandCheckBoxOption(boolean defaultChecked,
@NotNull CommandList commandOn,
@NotNull CommandList commandOff,
@NotNull java.lang.String tooltipText)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(boolean checked)
Executes the action associated with this check box option.
|
boolean |
isDefaultChecked()
Returns the default value of
CheckBoxOption.isChecked() . |
fireStateChangedEvent, getTooltipText, isChecked, setChecked, toggleChecked
addOptionListener, inhibitSave, removeOptionListener
public CommandCheckBoxOption(boolean defaultChecked, @NotNull @NotNull CommandList commandOn, @NotNull @NotNull CommandList commandOff, @NotNull @NotNull java.lang.String tooltipText)
defaultChecked
- the default valuecommandOn
- the command list to execute when checkedcommandOff
- the command list to execute when uncheckedtooltipText
- the tooltip text to explain this optionprotected void execute(boolean checked)
CheckBoxOption
execute
in class CheckBoxOption
checked
- whether the checkbox option is checkedpublic boolean isDefaultChecked()
CheckBoxOption
CheckBoxOption.isChecked()
.isDefaultChecked
in class CheckBoxOption