- java.lang.Object
-
- java.lang.Enum<KeyEvent.Special>
-
- org.jline.terminal.KeyEvent.Special
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KeyEvent.Special>
- Enclosing class:
- KeyEvent
public static enum KeyEvent.Special extends java.lang.Enum<KeyEvent.Special>
Defines special keys.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyEvent.SpecialvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KeyEvent.Special[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Enter
public static final KeyEvent.Special Enter
-
Tab
public static final KeyEvent.Special Tab
-
Escape
public static final KeyEvent.Special Escape
-
Backspace
public static final KeyEvent.Special Backspace
-
Delete
public static final KeyEvent.Special Delete
-
Home
public static final KeyEvent.Special Home
-
End
public static final KeyEvent.Special End
-
PageUp
public static final KeyEvent.Special PageUp
-
PageDown
public static final KeyEvent.Special PageDown
-
Insert
public static final KeyEvent.Special Insert
-
CapsLock
public static final KeyEvent.Special CapsLock
-
ScrollLock
public static final KeyEvent.Special ScrollLock
-
NumLock
public static final KeyEvent.Special NumLock
-
PrintScreen
public static final KeyEvent.Special PrintScreen
-
Pause
public static final KeyEvent.Special Pause
-
Menu
public static final KeyEvent.Special Menu
-
-
Method Detail
-
values
public static KeyEvent.Special[] 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 (KeyEvent.Special c : KeyEvent.Special.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyEvent.Special 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
-
-