Class ActivateCommandInputCommand

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canExecute()
      Returns whether this command may be executed.
      void execute()
      Executes the command.
      @NotNull java.lang.String getCommandString()
      Returns the command as a string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActivateCommandInputCommand

        public ActivateCommandInputCommand​(@NotNull
                                           @NotNull java.lang.String commandText,
                                           @NotNull
                                           @NotNull CommandCallback commandCallback,
                                           @NotNull
                                           @NotNull Macros macros)
        Creates a new instance.
        Parameters:
        commandText - the command text to set
        commandCallback - the command callback to affect
        macros - the macros instance to use
    • Method Detail

      • canExecute

        public boolean canExecute()
        Description copied from interface: GUICommand
        Returns whether this command may be executed.
        Specified by:
        canExecute in interface GUICommand
        Returns:
        whether this command may be executed
      • getCommandString

        @NotNull
        public @NotNull java.lang.String getCommandString()
        Description copied from interface: GUICommand2
        Returns the command as a string.
        Specified by:
        getCommandString in interface GUICommand2
        Returns:
        the command