Enum ProcessCommand

java.lang.Object
java.lang.Enum<ProcessCommand>
io.guise.framework.input.ProcessCommand
All Implemented Interfaces:
Command, Serializable, Comparable<ProcessCommand>

public enum ProcessCommand extends Enum<ProcessCommand> implements Command
Commands for reacting to a decision to be made during a process. A process command is semantically more general than a sequence command. While a "next" command is similar to "continue" in the context of a wizard and either could reasonably cause a progresion to the next stage of the sequence, selecting an OK button for a confirmation dialog would not be appropriate in response to the "next" command, although it would be for the "continue" command.
Author:
Garret Wilson
  • Enum Constant Details

    • CONTINUE

      public static final ProcessCommand CONTINUE
      The command for continuing a process. This command is usually bound to the Enter key and signifies that some step in a process should be approved.
    • ABORT

      public static final ProcessCommand ABORT
      The command for aborting a process. This command is usually bound to the Escape key and signifies that the process should be canceled.
  • Method Details

    • values

      public static ProcessCommand[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ProcessCommand valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null