public enum ColorsEnum extends Enum<ColorsEnum>
Enum Constant and Description |
---|
BLUE |
DARK_GREY |
GREEN |
GREY |
NONE |
ORANGE |
PINK |
RED |
WHITE |
Modifier and Type | Method and Description |
---|---|
String |
getCssColor() |
static ColorsEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorsEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorsEnum RED
public static final ColorsEnum PINK
public static final ColorsEnum ORANGE
public static final ColorsEnum GREEN
public static final ColorsEnum BLUE
public static final ColorsEnum DARK_GREY
public static final ColorsEnum GREY
public static final ColorsEnum WHITE
public static final ColorsEnum NONE
public static ColorsEnum[] values()
for (ColorsEnum c : ColorsEnum.values()) System.out.println(c);
public static ColorsEnum 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 getCssColor()
Copyright © 2011 Nuxeo SA. All Rights Reserved.