Package xyz.cofe.term.common
Enum KeyName
- java.lang.Object
-
- java.lang.Enum<KeyName>
-
- xyz.cofe.term.common.KeyName
-
- All Implemented Interfaces:
Serializable,Comparable<KeyName>
public enum KeyName extends Enum<KeyName>
Специальная клавиша клавиатуры
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyNamevalueOf(String name)Returns the enum constant of this type with the specified name.static KeyName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
F1
public static final KeyName F1
-
F2
public static final KeyName F2
-
F3
public static final KeyName F3
-
F4
public static final KeyName F4
-
F5
public static final KeyName F5
-
F6
public static final KeyName F6
-
F7
public static final KeyName F7
-
F8
public static final KeyName F8
-
F9
public static final KeyName F9
-
F10
public static final KeyName F10
-
F11
public static final KeyName F11
-
F12
public static final KeyName F12
-
Escape
public static final KeyName Escape
-
Enter
public static final KeyName Enter
-
Left
public static final KeyName Left
-
Right
public static final KeyName Right
-
Up
public static final KeyName Up
-
Down
public static final KeyName Down
-
Insert
public static final KeyName Insert
-
Delete
public static final KeyName Delete
-
Backspace
public static final KeyName Backspace
-
Home
public static final KeyName Home
-
End
public static final KeyName End
-
PageUp
public static final KeyName PageUp
-
PageDown
public static final KeyName PageDown
-
Tab
public static final KeyName Tab
-
ReverseTab
public static final KeyName ReverseTab
-
-
Method Detail
-
values
public static KeyName[] 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 (KeyName c : KeyName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyName 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 nameNullPointerException- if the argument is null
-
-