public enum ButtonStyle extends Enum<ButtonStyle>
| Enum Constant and Description |
|---|
DANGER
Use this when the consequence of the button click will result in the destruction of something, like a piece of data stored on your servers.
|
DEFAULT
Buttons will look simple.
|
PRIMARY
Use this sparingly, when the button represents a key action to accomplish.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<ButtonStyle> |
find(String key) |
static ButtonStyle |
get(String key) |
String |
toString() |
static ButtonStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ButtonStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ButtonStyle DEFAULT
public static final ButtonStyle PRIMARY
public static final ButtonStyle DANGER
public static ButtonStyle[] values()
for (ButtonStyle c : ButtonStyle.values()) System.out.println(c);
public static ButtonStyle 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 static ButtonStyle get(String key) throws UnmappedKeyException
UnmappedKeyExceptionpublic static Optional<ButtonStyle> find(String key)
public String toString()
toString in class Enum<ButtonStyle>Copyright © 2019. All rights reserved.