java.lang.Object com.realtime.crossfire.jxclient.gui.commands.ActivateCommandInputCommand
public class ActivateCommandInputCommand
A GUICommand
which activates the command input field.
Field Summary | |
---|---|
private CommandCallback |
commandCallback
The CommandCallback to affect. |
private java.lang.String |
commandText
The command text to set. |
private Macros |
macros
The Macros instance to use. |
Constructor Summary | |
---|---|
ActivateCommandInputCommand(java.lang.String commandText,
CommandCallback commandCallback,
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 |
getCommandText()
Returns the command text to set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@NotNull private final CommandCallback commandCallback
CommandCallback
to affect.
@NotNull private final java.lang.String commandText
@NotNull private final Macros macros
Macros
instance to use.
Constructor Detail |
---|
public ActivateCommandInputCommand(@NotNull java.lang.String commandText, @NotNull CommandCallback commandCallback, @NotNull Macros macros)
commandText
- the command text to setcommandCallback
- the command callback to affectmacros
- 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 getCommandText()