- java.lang.Object
-
- java.lang.Enum<KeyEvent.Keypad>
-
- org.jline.terminal.KeyEvent.Keypad
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KeyEvent.Keypad>
- Enclosing class:
- KeyEvent
public static enum KeyEvent.Keypad extends java.lang.Enum<KeyEvent.Keypad>
Defines keypad keys reported by the Kitty Keyboard Protocol.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyEvent.KeypadvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KeyEvent.Keypad[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KP0
public static final KeyEvent.Keypad KP0
-
KP1
public static final KeyEvent.Keypad KP1
-
KP2
public static final KeyEvent.Keypad KP2
-
KP3
public static final KeyEvent.Keypad KP3
-
KP4
public static final KeyEvent.Keypad KP4
-
KP5
public static final KeyEvent.Keypad KP5
-
KP6
public static final KeyEvent.Keypad KP6
-
KP7
public static final KeyEvent.Keypad KP7
-
KP8
public static final KeyEvent.Keypad KP8
-
KP9
public static final KeyEvent.Keypad KP9
-
Decimal
public static final KeyEvent.Keypad Decimal
-
Divide
public static final KeyEvent.Keypad Divide
-
Multiply
public static final KeyEvent.Keypad Multiply
-
Subtract
public static final KeyEvent.Keypad Subtract
-
Add
public static final KeyEvent.Keypad Add
-
Enter
public static final KeyEvent.Keypad Enter
-
Equal
public static final KeyEvent.Keypad Equal
-
Separator
public static final KeyEvent.Keypad Separator
-
Left
public static final KeyEvent.Keypad Left
-
Right
public static final KeyEvent.Keypad Right
-
Up
public static final KeyEvent.Keypad Up
-
Down
public static final KeyEvent.Keypad Down
-
PageUp
public static final KeyEvent.Keypad PageUp
-
PageDown
public static final KeyEvent.Keypad PageDown
-
Home
public static final KeyEvent.Keypad Home
-
End
public static final KeyEvent.Keypad End
-
Insert
public static final KeyEvent.Keypad Insert
-
Delete
public static final KeyEvent.Keypad Delete
-
Begin
public static final KeyEvent.Keypad Begin
-
-
Method Detail
-
values
public static KeyEvent.Keypad[] 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.Keypad c : KeyEvent.Keypad.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.Keypad 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
-
-