public enum StyleType extends Enum<StyleType>
Each enum value represent a different css class to style the element
| Enum Constant and Description |
|---|
DANGER
indicates an error or something went wrong
|
DEFAULT
a default style that indicate no special information
|
INFO
mark an element as one that has some information
|
PRIMARY
marks an element as a primary.
|
SUCCESS
indicates a success operation
|
WARNING
mark an element as one that requires user attention
|
| Modifier and Type | Method and Description |
|---|---|
String |
getStyle() |
static StyleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StyleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StyleType DEFAULT
public static final StyleType PRIMARY
public static final StyleType SUCCESS
public static final StyleType INFO
public static final StyleType WARNING
public static final StyleType DANGER
public static StyleType[] values()
for (StyleType c : StyleType.values()) System.out.println(c);
public static StyleType 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 getStyle()
Copyright © 2019–2022 Dominokit. All rights reserved.