public enum ContextualBackground extends Enum<ContextualBackground> implements Style.HasCssName
Enum Constant and Description |
---|
DANGER |
DEFAULT |
INFO |
PRIMARY |
SUCCESS |
WARNING |
Modifier and Type | Method and Description |
---|---|
static ContextualBackground |
fromStyleName(String styleName) |
String |
getCssName() |
static ContextualBackground |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContextualBackground[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContextualBackground DEFAULT
public static final ContextualBackground DANGER
public static final ContextualBackground INFO
public static final ContextualBackground PRIMARY
public static final ContextualBackground SUCCESS
public static final ContextualBackground WARNING
public static ContextualBackground[] values()
for (ContextualBackground c : ContextualBackground.values()) System.out.println(c);
public static ContextualBackground 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 ContextualBackground fromStyleName(String styleName)
public String getCssName()
getCssName
in interface Style.HasCssName
Copyright © 2017. All rights reserved.