public enum ButtonColor extends Enum<ButtonColor>
Button.
Setting this option on a button has a different effect depending on its type.
For a flat or icon button, this option controls the color of the text. For a
raised button it controls the color of the background.| Enum Constant and Description |
|---|
ACCENT
Apply the accented theme color to the button.
|
BTN_NO_COLOR
Setup a button with no extra coloring.
|
PRIMARY
Apply the main theme color to the button.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns the css class name related to this option.
|
static ButtonColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ButtonColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ButtonColor BTN_NO_COLOR
public static final ButtonColor PRIMARY
public static final ButtonColor ACCENT
public static ButtonColor[] values()
for (ButtonColor c : ButtonColor.values()) System.out.println(c);
public static ButtonColor 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 String toString()
toString in class Enum<ButtonColor>Copyright © 2016 com.github.ilyes4j. All rights reserved.