java.lang.Objectcom.realtime.crossfire.jxclient.settings.options.Option
com.realtime.crossfire.jxclient.settings.options.CheckBoxOption
com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption
public class CommandCheckBoxOption
A CheckBoxOption that executes CommandLists when
checked/unchecked.
| Field Summary | |
|---|---|
private CommandList |
commandOff
The command list to execute when unchecked. |
private CommandList |
commandOn
The command list to execute when checked. |
| Constructor Summary | |
|---|---|
CommandCheckBoxOption(CommandList commandOn,
CommandList commandOff,
java.lang.String tooltipText)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected void |
execute(boolean checked)
Execute the action associated with this check box option. |
boolean |
isDefaultChecked()
Return the default value of CheckBoxOption.isChecked(). |
| Methods inherited from class com.realtime.crossfire.jxclient.settings.options.CheckBoxOption |
|---|
fireStateChangedEvent, getTooltipText, isChecked, setChecked, toggleChecked |
| Methods inherited from class com.realtime.crossfire.jxclient.settings.options.Option |
|---|
addOptionListener, inhibitSave, removeOptionListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final CommandList commandOff
@NotNull private final CommandList commandOn
| Constructor Detail |
|---|
public CommandCheckBoxOption(@NotNull
CommandList commandOn,
@NotNull
CommandList commandOff,
@NotNull
java.lang.String tooltipText)
commandOn - the command list to execute when checkedcommandOff - the command list to execute when uncheckedtooltipText - the tooltip text to explain this option| Method Detail |
|---|
protected void execute(boolean checked)
execute in class CheckBoxOptionchecked - whether the check box option is checkedpublic boolean isDefaultChecked()
CheckBoxOption.isChecked().
isDefaultChecked in class CheckBoxOption