Crossfire JXClient, Trunk
|
Public Member Functions | |
GUICommand | createCommand (@NotNull final String commandString) |
GUICommand | createCommandDecode (@NotNull final String encodedCommandString) |
String | decode (@NotNull final String command) |
String | encode (@NotNull final String command) |
GUICommandFactoryImpl (@NotNull final CommandCallback commandCallback, @NotNull final CommandExecutor commandExecutor, @NotNull final Macros macros) | |
Private Attributes | |
final CommandCallback | commandCallback |
final CommandExecutor | commandExecutor |
final Macros | macros |
Static Private Attributes | |
static final Pattern | PATTERN_ENCODE = Pattern.compile(".*[- \t]$") |
static final String | TRAILING_ESCAPE = "-" |
Factory for creating GUICommand instances from string representation.
Definition at line 37 of file GUICommandFactoryImpl.java.
com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.GUICommandFactoryImpl | ( | @NotNull final CommandCallback | commandCallback, |
@NotNull final CommandExecutor | commandExecutor, | ||
@NotNull final Macros | macros | ||
) |
Creates a new instance.
commandCallback | the command callback to use |
commandExecutor | the command executor instance to use |
macros | the macros instance to use |
Definition at line 75 of file GUICommandFactoryImpl.java.
References com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.commandCallback, com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.commandExecutor, and com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.macros.
GUICommand com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommand | ( | @NotNull final String | commandString | ) |
Creates a new GUICommand instance from string representation.
commandString | the command string representation |
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommandFactory.
Definition at line 98 of file GUICommandFactoryImpl.java.
References com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.commandCallback, com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.commandExecutor, com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.macros, and com.realtime.crossfire.jxclient.util.StringUtils.trimLeading().
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommandDecode().
GUICommand com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommandDecode | ( | @NotNull final String | encodedCommandString | ) |
Creates a new GUICommand instance from string representation.
encodedCommandString | the command string representation |
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommandFactory.
Definition at line 87 of file GUICommandFactoryImpl.java.
References com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommand(), and com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.decode().
String com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.decode | ( | @NotNull final String | command | ) |
Decodes a key binding if necessary.
command | the key binding |
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommandFactory.
Definition at line 126 of file GUICommandFactoryImpl.java.
References com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.TRAILING_ESCAPE.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommandDecode().
String com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.encode | ( | @NotNull final String | command | ) |
Encodes a key binding if necessary.
command | the key binding |
Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommandFactory.
Definition at line 115 of file GUICommandFactoryImpl.java.
References com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.PATTERN_ENCODE, and com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.TRAILING_ESCAPE.
|
private |
The CommandCallback to use.
Definition at line 55 of file GUICommandFactoryImpl.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommand(), and com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.GUICommandFactoryImpl().
|
private |
The CommandExecutor instance to use.
Definition at line 61 of file GUICommandFactoryImpl.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommand(), and com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.GUICommandFactoryImpl().
|
private |
The Macros instance to use.
Definition at line 67 of file GUICommandFactoryImpl.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.createCommand(), and com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.GUICommandFactoryImpl().
|
staticprivate |
Pattern matching lines that need a TRAILING_ESCAPE appended.
Definition at line 43 of file GUICommandFactoryImpl.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.encode().
|
staticprivate |
Character appended to lines ending with whitespace.
Definition at line 49 of file GUICommandFactoryImpl.java.
Referenced by com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.decode(), and com.realtime.crossfire.jxclient.gui.textinput.GUICommandFactoryImpl.encode().