public enum CapsLockState extends Enum<CapsLockState>
Enum Constant and Description |
---|
Auto
Device automatically detects the Caps Lock status before data is transmitted
|
Off
Caps Lock off
|
On
Caps Lock on
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static CapsLockState |
valueOf(int value) |
static CapsLockState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CapsLockState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CapsLockState Off
public static final CapsLockState On
public static final CapsLockState Auto
public static CapsLockState[] values()
for (CapsLockState c : CapsLockState.values()) System.out.println(c);
public static CapsLockState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static CapsLockState valueOf(int value)