public enum ButtonType extends java.lang.Enum<ButtonType> implements StyleDefinition
There are different types of Buttons available on Mac OS X, which have a more rounded border, are completely rounded or a set of pills.
Enum Constant and Description |
---|
CENTER_PILL
CENTER_PILL indicates a Button, that is an inner Button of a set of Buttons (pills)
|
HELP
HELP indicates a round Button (which is usually labeled with the String "?".
|
LEFT_PILL
LEFT_PILL indicates a Button, that is the most left Button of a set of Buttons (pills)
|
REGULAR
REGULAR indicates a regular Button.
|
RIGHT_PILL
RIGHT_PILL indicates a Button, that is the most right Button of a set of Buttons (pills)
|
ROUND_RECT
ROUND_RECT indicates a Button with more rounded (higher radius) borders than a regular
Button.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStyleName()
Constructs a String as name for the StyleClass.
|
static ButtonType |
valueOf(java.lang.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 REGULAR
public static final ButtonType HELP
public static final ButtonType ROUND_RECT
public static final ButtonType LEFT_PILL
public static final ButtonType CENTER_PILL
public static final ButtonType RIGHT_PILL
public static ButtonType[] values()
for (ButtonType c : ButtonType.values()) System.out.println(c);
public static 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 java.lang.String getStyleName()
getStyleName
in interface StyleDefinition
Copyright © 2013. All Rights Reserved.