Package com.helger.css.utils
Enum ECSSColorName
- All Implemented Interfaces:
com.helger.commons.name.IHasName,ICSSNamedColor,Serializable,Comparable<ECSSColorName>,java.lang.constant.Constable
Contains a list of predefined color values in CSS 2.1.
These names are deprecated in CSS 3.0 in favour of the appearance property.
Source: http://www.w3.org/TR/css3-color/ chapter 4.5.1
These names are deprecated in CSS 3.0 in favour of the appearance property.
Source: http://www.w3.org/TR/css3-color/ chapter 4.5.1
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic ECSSColorNamegetName()static booleanisDefaultColorName(String sName) Check if the passed color name is a default color name.static ECSSColorNameReturns the enum constant of this type with the specified name.static ECSSColorName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACTIVEBORDER
-
ACTIVECAPTION
-
APPWORKSPACE
-
BACKGROUND
-
BUTTONFACE
-
BUTTONHIGHLIGHT
-
BUTTONSHADOW
-
BUTTONTEXT
-
CAPTIONTEXT
-
GRAYTEXT
-
HIGHLIGHT
-
HIGHLIGHTTEXT
-
INACTIVEBORDER
-
INACTIVECAPTION
-
INACTIVECAPTIONTEXT
-
INFOBACKGROUND
-
INFOTEXT
-
MENU
-
MENUTEXT
-
SCROLLBAR
-
THREEDDARKSHADOW
-
THREEDFACE
-
THREEDHIGHLIGHT
-
THREEDLIGHTSHADOW
-
THREEDSHADOW
-
WINDOW
-
WINDOWFRAME
-
WINDOWTEXT
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
- Specified by:
getNamein interfacecom.helger.commons.name.IHasName- Returns:
- The name of the color as to be used in CSS. Neither
nullnor empty.
-
getFromNameCaseInsensitiveOrNull
-
isDefaultColorName
Check if the passed color name is a default color name.- Parameters:
sName- The color name to check.- Returns:
trueif the passed color name is a default color name,falseif not.
-