Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | allArguments () |
void | execute (@NotNull final String args) |
String | getHelp () |
ShortcutCommand (@NotNull final Shortcuts shortcuts, @NotNull final CrossfireServerConnection crossfireServerConnection) | |
Public Member Functions inherited from com.realtime.crossfire.jxclient.commands.AbstractCommand | |
String | getCommandName () |
String | toString () |
Private Member Functions | |
void | deleteSlot (@NotNull final String args) |
void | listSlots () |
ShortcutSlot | parseKey (@NotNull final String args) |
void | updateSlot (@NotNull final String args) |
Private Attributes | |
final Shortcuts | shortcuts |
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 "shortcut" command. It adds, modifies or removes the contents of the shortcut bar.
Definition at line 38 of file ShortcutCommand.java.
com.realtime.crossfire.jxclient.commands.ShortcutCommand.ShortcutCommand | ( | @NotNull final Shortcuts | shortcuts, |
@NotNull final CrossfireServerConnection | crossfireServerConnection | ||
) |
Creates a new instance.
shortcuts | the shortcuts to use |
crossfireServerConnection | the connection instance screenshot file names |
Definition at line 52 of file ShortcutCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.crossfireServerConnection, and com.realtime.crossfire.jxclient.commands.ShortcutCommand.shortcuts.
boolean com.realtime.crossfire.jxclient.commands.ShortcutCommand.allArguments | ( | ) |
Returns whether all remaining commands should be included as arguments.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 58 of file ShortcutCommand.java.
|
private |
Clears a slot.
args | the key name |
Definition at line 88 of file ShortcutCommand.java.
References com.realtime.crossfire.jxclient.commands.ShortcutCommand.parseKey(), com.realtime.crossfire.jxclient.shortcuts.Shortcuts.setShortcutString(), and com.realtime.crossfire.jxclient.commands.ShortcutCommand.shortcuts.
Referenced by com.realtime.crossfire.jxclient.commands.ShortcutCommand.execute().
void com.realtime.crossfire.jxclient.commands.ShortcutCommand.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 63 of file ShortcutCommand.java.
References com.realtime.crossfire.jxclient.commands.ShortcutCommand.deleteSlot(), com.realtime.crossfire.jxclient.commands.ShortcutCommand.listSlots(), com.realtime.crossfire.jxclient.util.StringUtils.trimLeading(), and com.realtime.crossfire.jxclient.commands.ShortcutCommand.updateSlot().
String com.realtime.crossfire.jxclient.commands.ShortcutCommand.getHelp | ( | ) |
Returns the help text for this command.
Implements com.realtime.crossfire.jxclient.commands.Command.
Definition at line 109 of file ShortcutCommand.java.
|
private |
Lists all shortcuts.
Definition at line 76 of file ShortcutCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfo(), com.realtime.crossfire.jxclient.shortcuts.Shortcut.getCommand(), com.realtime.crossfire.jxclient.shortcuts.Shortcuts.getShortcut(), and com.realtime.crossfire.jxclient.commands.ShortcutCommand.shortcuts.
Referenced by com.realtime.crossfire.jxclient.commands.ShortcutCommand.execute().
|
private |
Parses a key name. Prints an error message if the key name is invalid.
args | the key name |
Definition at line 131 of file ShortcutCommand.java.
References com.realtime.crossfire.jxclient.commands.AbstractCommand.drawInfoError().
Referenced by com.realtime.crossfire.jxclient.commands.ShortcutCommand.deleteSlot(), and com.realtime.crossfire.jxclient.commands.ShortcutCommand.updateSlot().
|
private |
Updates a slot.
args | the key name and the command |
Definition at line 99 of file ShortcutCommand.java.
References com.realtime.crossfire.jxclient.commands.ShortcutCommand.parseKey(), com.realtime.crossfire.jxclient.shortcuts.Shortcuts.setShortcutString(), and com.realtime.crossfire.jxclient.commands.ShortcutCommand.shortcuts.
Referenced by com.realtime.crossfire.jxclient.commands.ShortcutCommand.execute().
|
private |
The shortcuts to use.
Definition at line 44 of file ShortcutCommand.java.
Referenced by com.realtime.crossfire.jxclient.commands.ShortcutCommand.deleteSlot(), com.realtime.crossfire.jxclient.commands.ShortcutCommand.listSlots(), com.realtime.crossfire.jxclient.commands.ShortcutCommand.ShortcutCommand(), and com.realtime.crossfire.jxclient.commands.ShortcutCommand.updateSlot().