Module cli
Package de.grogra.cli

Enum Class CLIApplication.State

java.lang.Object
java.lang.Enum<CLIApplication.State>
de.grogra.cli.CLIApplication.State
All Implemented Interfaces:
Serializable, Comparable<CLIApplication.State>, Constable
Enclosing class:
CLIApplication

public static enum CLIApplication.State extends Enum<CLIApplication.State>
Possible states in which the current readline operation may be in.
  • Enum Constant Details

    • READ_COMMAND

      public static final CLIApplication.State READ_COMMAND
      The application is waiting for the user to write a command
    • READ_VALUE

      public static final CLIApplication.State READ_VALUE
      A dialog has been open and the user needs to write a value
    • READ_TEXTEDITOR

      public static final CLIApplication.State READ_TEXTEDITOR
      the application is opening a text editor, been unavailable while its open
    • READ_XLCONSOLE

      public static final CLIApplication.State READ_XLCONSOLE
      the terminal is set as a xlconsole linked to the selected workbench - all commands are pushed to the xlconsole until exit
  • Method Details

    • values

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

      public static CLIApplication.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null