Crossfire JXClient, Trunk
|
Public Member Functions | |
CommandCheckBoxOption (final boolean defaultChecked, @NotNull final CommandList commandOn, @NotNull final CommandList commandOff, @NotNull final String tooltipText) | |
boolean | isDefaultChecked () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.settings.options.CheckBoxOption | |
String | getTooltipText () |
boolean | isChecked () |
void | setChecked (final boolean checked) |
void | toggleChecked () |
Public Member Functions inherited from com.realtime.crossfire.jxclient.settings.options.Option | |
void | addOptionListener (@NotNull final OptionListener listener) |
boolean | inhibitSave () |
void | removeOptionListener (@NotNull final OptionListener listener) |
Protected Member Functions | |
void | execute (final boolean checked) |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.settings.options.CheckBoxOption | |
CheckBoxOption (@NotNull final String tooltipText) | |
void | fireStateChangedEvent () |
Private Attributes | |
final CommandList | commandOff |
final CommandList | commandOn |
final boolean | defaultChecked |
A CheckBoxOption that executes CommandLists when checked/unchecked.
Definition at line 34 of file CommandCheckBoxOption.java.
com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.CommandCheckBoxOption | ( | final boolean | defaultChecked, |
@NotNull final CommandList | commandOn, | ||
@NotNull final CommandList | commandOff, | ||
@NotNull final String | tooltipText | ||
) |
Creates a new instance.
defaultChecked | the default value |
commandOn | the command list to execute when checked |
commandOff | the command list to execute when unchecked |
tooltipText | the tooltip text to explain this option |
Definition at line 60 of file CommandCheckBoxOption.java.
References com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.commandOff, com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.commandOn, com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.defaultChecked, and com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.tooltipText.
|
protected |
Executes the action associated with this check box option. Must be implemented in subclasses.
checked | whether the checkbox option is checked |
Reimplemented from com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.
Definition at line 68 of file CommandCheckBoxOption.java.
References com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.checked, com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.commandOff, com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.commandOn, and com.realtime.crossfire.jxclient.gui.commandlist.CommandList.execute().
boolean com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.isDefaultChecked | ( | ) |
Returns the default value of isChecked().
Reimplemented from com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.
Definition at line 77 of file CommandCheckBoxOption.java.
References com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.defaultChecked.
|
private |
The command list to execute when unchecked.
Definition at line 51 of file CommandCheckBoxOption.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.CommandCheckBoxOption(), and com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.execute().
|
private |
The command list to execute when checked.
Definition at line 45 of file CommandCheckBoxOption.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.CommandCheckBoxOption(), and com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.execute().
|
private |
The default value.
Definition at line 39 of file CommandCheckBoxOption.java.
Referenced by com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.CommandCheckBoxOption(), and com.realtime.crossfire.jxclient.gui.commands.CommandCheckBoxOption.isDefaultChecked().