Enum Key.Type

java.lang.Object
java.lang.Enum<Key.Type>
com.codename1.cli.Key.Type
All Implemented Interfaces:
Comparable<Key.Type>
Enclosing class:
Key

public static enum Key.Type extends Enum<Key.Type>
What was pressed.
  • Enum Constant Details

    • CHAR

      public static final Key.Type CHAR
      A printable character; see Key.codePoint.
    • ENTER

      public static final Key.Type ENTER
      Enter or Return.
    • TAB

      public static final Key.Type TAB
      Tab.
    • BACKTAB

      public static final Key.Type BACKTAB
      Shift-Tab.
    • BACKSPACE

      public static final Key.Type BACKSPACE
      Backspace.
    • DELETE

      public static final Key.Type DELETE
      Delete.
    • INSERT

      public static final Key.Type INSERT
      Insert.
    • ESCAPE

      public static final Key.Type ESCAPE
      Escape on its own.
    • UP

      public static final Key.Type UP
      Up arrow.
    • DOWN

      public static final Key.Type DOWN
      Down arrow.
    • LEFT

      public static final Key.Type LEFT
      Left arrow.
    • HOME

      public static final Key.Type HOME
      Home.
    • END

      public static final Key.Type END
      End.
    • PAGE_UP

      public static final Key.Type PAGE_UP
      Page Up.
    • PAGE_DOWN

      public static final Key.Type PAGE_DOWN
      Page Down.
    • FUNCTION

      public static final Key.Type FUNCTION
      A function key; see Key.number().
    • CTRL

      public static final Key.Type CTRL
      Control and a letter other than the ones named here; see Key.codePoint for the letter.
    • CTRL_C

      public static final Key.Type CTRL_C
      Ctrl-C.
    • CTRL_D

      public static final Key.Type CTRL_D
      Ctrl-D.
    • EOF

      public static final Key.Type EOF
      The end of standard input.
    • UNKNOWN

      public static final Key.Type UNKNOWN
      An escape sequence this decoder does not know.
  • Method Details

    • values

      public static Key.Type[] 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 Key.Type 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