Crossfire JXClient, Trunk
R20561
|
Implements the command "set". More...
Public Member Functions | |||
boolean | allArguments () | ||
Returns whether all remaining commands should be included as arguments.
| |||
void | execute (@NotNull final String args) | ||
Executes the command with the given arguments.
| |||
SetCommand (@NotNull final CrossfireServerConnection crossfireServerConnection, @NotNull final OptionManager optionManager) | |||
Creates a new instance. More... | |||
![]() | |||
String | getCommandName () | ||
Returns the name of the command.
| |||
String | toString () | ||
Private Attributes | |
final OptionManager | optionManager |
The option manager instance. More... | |
Additional Inherited Members | |
![]() | |
AbstractCommand (@NotNull final String commandName, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
Creates a new instance. More... | |
void | drawInfo (@NotNull final String message) |
Displays a regular output message. More... | |
void | drawInfo (@NotNull final String message, final int color) |
Displays a message. More... | |
void | drawInfoError (@NotNull final String message) |
Displays an error message. More... | |
Implements the command "set".
It changes settings options.
Definition at line 35 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 48 of file SetCommand.java.
References 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 57 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 65 of file SetCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError(), com.realtime.crossfire.jxclient.settings.options.OptionManager.getCheckBoxOption(), com.realtime.crossfire.jxclient.util.Patterns.PATTERN_WHITESPACE, and com.realtime.crossfire.jxclient.settings.options.CheckBoxOption.setChecked().
|
private |
The option manager instance.
Definition at line 41 of file SetCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.SetCommand.SetCommand().