public class GUICommandFactoryImpl extends java.lang.Object implements GUICommandFactory
GUICommand instances from string
representation.| Constructor and Description |
|---|
GUICommandFactoryImpl(@NotNull CommandCallback commandCallback,
@NotNull CommandExecutor commandExecutor,
@NotNull Macros macros)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull GUICommand |
createCommand(@NotNull java.lang.String commandString)
Creates a new
GUICommand instance from string representation. |
GUICommand |
createCommandDecode(@NotNull java.lang.String encodedCommandString)
Creates a new
GUICommand instance from string representation. |
@NotNull java.lang.String |
decode(@NotNull java.lang.String command)
Decodes a key binding if necessary.
|
@NotNull java.lang.String |
encode(@NotNull java.lang.String command)
Encodes a key binding if necessary.
|
public GUICommandFactoryImpl(@NotNull
@NotNull CommandCallback commandCallback,
@NotNull
@NotNull CommandExecutor commandExecutor,
@NotNull
@NotNull Macros macros)
commandCallback - the command callback to usecommandExecutor - the command executor instance to usemacros - the macros instance to usepublic GUICommand createCommandDecode(@NotNull @NotNull java.lang.String encodedCommandString)
GUICommand instance from string representation.createCommandDecode in interface GUICommandFactoryencodedCommandString - the command string representation@NotNull public @NotNull GUICommand createCommand(@NotNull @NotNull java.lang.String commandString)
GUICommand instance from string representation.createCommand in interface GUICommandFactorycommandString - the command string representation@NotNull
public @NotNull java.lang.String encode(@NotNull
@NotNull java.lang.String command)
encode in interface GUICommandFactorycommand - the key binding@NotNull
public @NotNull java.lang.String decode(@NotNull
@NotNull java.lang.String command)
decode in interface GUICommandFactorycommand - the key binding