Enum TerminalInputListener.Key
- java.lang.Object
-
- java.lang.Enum<TerminalInputListener.Key>
-
- net.rubygrapefruit.platform.terminal.TerminalInputListener.Key
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TerminalInputListener.Key>
- Enclosing interface:
- TerminalInputListener
public static enum TerminalInputListener.Key extends java.lang.Enum<TerminalInputListener.Key>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TerminalInputListener.KeyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TerminalInputListener.Key[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Enter
public static final TerminalInputListener.Key Enter
-
UpArrow
public static final TerminalInputListener.Key UpArrow
-
DownArrow
public static final TerminalInputListener.Key DownArrow
-
LeftArrow
public static final TerminalInputListener.Key LeftArrow
-
RightArrow
public static final TerminalInputListener.Key RightArrow
-
Home
public static final TerminalInputListener.Key Home
-
End
public static final TerminalInputListener.Key End
-
EraseBack
public static final TerminalInputListener.Key EraseBack
-
EraseForward
public static final TerminalInputListener.Key EraseForward
-
BackTab
public static final TerminalInputListener.Key BackTab
-
PageUp
public static final TerminalInputListener.Key PageUp
-
PageDown
public static final TerminalInputListener.Key PageDown
-
-
Method Detail
-
values
public static TerminalInputListener.Key[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TerminalInputListener.Key c : TerminalInputListener.Key.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TerminalInputListener.Key valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-