public static enum ButtonComponent.ButtonType extends java.lang.Enum<ButtonComponent.ButtonType>
| Enum Constant and Description |
|---|
Normal
Specifies a normal, clickable button.
|
Repeat
Specifies a repeat button.
|
| Modifier and Type | Method and Description |
|---|---|
static ButtonComponent.ButtonType |
fromInteger(int intVal)
Returns the ButtonType corresponding to an integer value.
|
int |
getValue()
Get an integer value associated with this ButtonType.
|
static ButtonComponent.ButtonType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ButtonComponent.ButtonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ButtonComponent.ButtonType Normal
public static final ButtonComponent.ButtonType Repeat
public static ButtonComponent.ButtonType[] values()
for (ButtonComponent.ButtonType c : ButtonComponent.ButtonType.values()) System.out.println(c);
public static ButtonComponent.ButtonType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ButtonComponent.ButtonType fromInteger(int intVal)
intVal - An integer value.public int getValue()