Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | allArguments () |
void | execute (@NotNull final String args) |
String | getHelp () |
SetCommand (@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final OptionManager optionManager) | |
Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
String | getCommandName () |
String | toString () |
Private Attributes | |
final OptionManager | optionManager |
Additional Inherited Members | |
Protected Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
void | drawInfo (@NotNull final String message) |
void | drawInfo (@NotNull final String message, final int color) |
void | drawInfoError (@NotNull final String message) |
Implements the command "set". It changes settings options.
Definition at line 37 of file SetCommand.java.
com.realtime.crossfire.jxclient.commands.SetCommand.SetCommand | ( | @NotNull final CrossfireServerConnection | crossfireServerConnection, |
@NotNull final OptionManager | optionManager | ||
) |
Creates a new instance.
crossfireServerConnection | the connection instance |
optionManager | the option manager to use |
Definition at line 50 of file SetCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection, and com.realtime.crossfire.jxclient.commands.SetCommand.optionManager.
boolean com.realtime.crossfire.jxclient.commands.SetCommand.allArguments | ( | ) |
Returns whether all remaining commands should be included as arguments.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 56 of file SetCommand.java.
void com.realtime.crossfire.jxclient.commands.SetCommand.execute | ( | @NotNull final String | args | ) |
Executes the command with the given arguments.
args | the command arguments |
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 61 of file SetCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError(), com.realtime.crossfire.jxclient.settings.options.OptionManager.getCheckBoxOption(), com.realtime.crossfire.jxclient.commands.SetCommand.optionManager, com.realtime.crossfire.jxclient.util.Patterns.PATTERN_WHITESPACE, and com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.setChecked().
String com.realtime.crossfire.jxclient.commands.SetCommand.getHelp | ( | ) |
Returns the help text for this command.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 98 of file SetCommand.java.
References com.realtime.crossfire.jxclient.settings.options.OptionManager.getOptions(), and com.realtime.crossfire.jxclient.commands.SetCommand.optionManager.
|
private |
The option manager instance.
Definition at line 43 of file SetCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.SetCommand.execute(), com.realtime.crossfire.jxclient.commands.SetCommand.getHelp(), and com.realtime.crossfire.jxclient.commands.SetCommand.SetCommand().