Package FlaNium.WinAPI.enums
Enum KeyboardLayout
- java.lang.Object
-
- java.lang.Enum<KeyboardLayout>
-
- FlaNium.WinAPI.enums.KeyboardLayout
-
- All Implemented Interfaces:
Serializable,Comparable<KeyboardLayout>
public enum KeyboardLayout extends Enum<KeyboardLayout>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyboardLayoutgetKeyboardLayout(String layoutCode)StringgetLayoutCode()static KeyboardLayoutvalueOf(String name)Returns the enum constant of this type with the specified name.static KeyboardLayout[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUS
public static final KeyboardLayout RUS
-
ENG
public static final KeyboardLayout ENG
-
UNKNOWN
public static final KeyboardLayout UNKNOWN
-
-
Method Detail
-
values
public static KeyboardLayout[] 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 (KeyboardLayout c : KeyboardLayout.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyboardLayout 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
-
getLayoutCode
public String getLayoutCode()
-
getKeyboardLayout
public static KeyboardLayout getKeyboardLayout(String layoutCode)
-
-