java.lang.Object com.realtime.crossfire.jxclient.gui.commands.ExecuteCommandCommand
public class ExecuteCommandCommand
A GUICommand
which executes a Crossfire command.
Field Summary | |
---|---|
private java.lang.String |
command
The command to execute. |
private Commands |
commands
The commands instance for executing the command. |
private Macros |
macros
The Macros instance to use. |
Constructor Summary | |
---|---|
ExecuteCommandCommand(Commands commands,
java.lang.String command,
Macros macros)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
canExecute()
Returns whether this command may be executed. |
void |
execute()
Executes the command. |
java.lang.String |
getCommand()
Returns the command to execute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final java.lang.String command
@NotNull private final Commands commands
@NotNull private final Macros macros
Macros
instance to use.
Constructor Detail |
---|
public ExecuteCommandCommand(@NotNull Commands commands, @NotNull java.lang.String command, @NotNull Macros macros)
commands
- the commands instance for executing the commandcommand
- the command to executemacros
- the macros instance to useMethod Detail |
---|
public boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.
execute
in interface GUICommand
@NotNull public java.lang.String getCommand()