Package com.jalios.jcms.ui
Enum Color
- java.lang.Object
-
- java.lang.Enum<Color>
-
- com.jalios.jcms.ui.Color
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
asColor()
java.lang.String
getCssName()
java.lang.String
getLabel(java.lang.String lang)
Retrieve an I18N label for this colorjava.lang.String
getValue()
static Color
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Color[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORANGE_LIGHT
public static final Color ORANGE_LIGHT
-
ORANGE
public static final Color ORANGE
-
ORANGE_DEEP
public static final Color ORANGE_DEEP
-
ORANGE_DARK
public static final Color ORANGE_DARK
-
YELLOW_LIGHT
public static final Color YELLOW_LIGHT
-
YELLOW
public static final Color YELLOW
-
YELLOW_DEEP
public static final Color YELLOW_DEEP
-
YELLOW_DARK
public static final Color YELLOW_DARK
-
LIME_LIGHT
public static final Color LIME_LIGHT
-
LIME
public static final Color LIME
-
LIME_DEEP
public static final Color LIME_DEEP
-
LIME_DARK
public static final Color LIME_DARK
-
GREEN_LIGHT
public static final Color GREEN_LIGHT
-
GREEN
public static final Color GREEN
-
GREEN_DEEP
public static final Color GREEN_DEEP
-
GREEN_DARK
public static final Color GREEN_DARK
-
TURQUOISE_LIGHT
public static final Color TURQUOISE_LIGHT
-
TURQUOISE
public static final Color TURQUOISE
-
TURQUOISE_DEEP
public static final Color TURQUOISE_DEEP
-
TURQUOISE_DARK
public static final Color TURQUOISE_DARK
-
CYAN_LIGHT
public static final Color CYAN_LIGHT
-
CYAN
public static final Color CYAN
-
CYAN_DEEP
public static final Color CYAN_DEEP
-
CYAN_DARK
public static final Color CYAN_DARK
-
BLUE_LIGHT
public static final Color BLUE_LIGHT
-
BLUE
public static final Color BLUE
-
BLUE_DEEP
public static final Color BLUE_DEEP
-
BLUE_DARK
public static final Color BLUE_DARK
-
PURPLE_LIGHT
public static final Color PURPLE_LIGHT
-
PURPLE
public static final Color PURPLE
-
PURPLE_DEEP
public static final Color PURPLE_DEEP
-
PURPLE_DARK
public static final Color PURPLE_DARK
-
PINK_LIGHT
public static final Color PINK_LIGHT
-
PINK
public static final Color PINK
-
PINK_DEEP
public static final Color PINK_DEEP
-
PINK_DARK
public static final Color PINK_DARK
-
RED_LIGHT
public static final Color RED_LIGHT
-
RED
public static final Color RED
-
RED_DEEP
public static final Color RED_DEEP
-
RED_DARK
public static final Color RED_DARK
-
BEIGE_LIGHT
public static final Color BEIGE_LIGHT
-
BEIGE
public static final Color BEIGE
-
BEIGE_DEEP
public static final Color BEIGE_DEEP
-
BEIGE_DARK
public static final Color BEIGE_DARK
-
GREY_NEUTRAL_LIGHT
public static final Color GREY_NEUTRAL_LIGHT
-
GREY_NEUTRAL
public static final Color GREY_NEUTRAL
-
GREY_NEUTRAL_DEEP
public static final Color GREY_NEUTRAL_DEEP
-
GREY_NEUTRAL_DARK
public static final Color GREY_NEUTRAL_DARK
-
GREYBLUE_LIGHT
public static final Color GREYBLUE_LIGHT
-
GREYBLUE
public static final Color GREYBLUE
-
GREYBLUE_DEEP
public static final Color GREYBLUE_DEEP
-
GREYBLUE_DARK
public static final Color GREYBLUE_DARK
-
-
Method Detail
-
values
public static Color[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Color c : Color.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Color valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCssName
public java.lang.String getCssName()
-
getValue
public java.lang.String getValue()
-
getLabel
public java.lang.String getLabel(java.lang.String lang)
Retrieve an I18N label for this color- Parameters:
lang
- the ISO-639 language code in which to retrieve the colorname- Returns:
- a I18N string of the colorname, or the hexadecimal colorcode if it could not be translated
- Since:
- jcms-10.0.5
-
asColor
public java.awt.Color asColor()
-
-