public enum ButtonType extends Enum<ButtonType>
| Enum Constant and Description |
|---|
COMPACT
A button with compact size (110 x 20)
|
DEFAULT
A button with default size (55 x 62)
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Image height of the button.
|
int |
getWidth()
Image width of the button.
|
static ButtonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ButtonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ButtonType DEFAULT
public static final ButtonType COMPACT
public static ButtonType[] values()
for (ButtonType c : ButtonType.values()) System.out.println(c);
public static ButtonType 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 getWidth()
public int getHeight()
Copyright © 2010-2013. All Rights Reserved.