public class ActivateCommandInputCommand extends java.lang.Object implements GUICommand2
GUICommand
which activates the command input field.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ActivateCommandInputCommand(java.lang.String commandText,
CommandCallback commandCallback,
Macros macros)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
java.lang.String |
getCommandString()
Returns the command as a string.
|
@NotNull private final CommandCallback commandCallback
CommandCallback
to affect.@NotNull private final java.lang.String commandText
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 usepublic boolean canExecute()
canExecute
in interface GUICommand
public void execute()
GUICommand.canExecute()
returns false
.execute
in interface GUICommand
@NotNull public java.lang.String getCommandString()
getCommandString
in interface GUICommand2