- All Implemented Interfaces:
Serializable
,Comparable<CSSValue.CssType>
,java.lang.constant.Constable
- Enclosing interface:
CSSValue
The main categories of values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CSSValue.CssType
Returns the enum constant of this class with the specified name.static CSSValue.CssType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KEYWORD
A CSS-wide keyword likeinherit
. -
PROXY
A vehicle towards a final value, of a CSS type that cannot be anticipated.
Example:
var()
orattr()
.(note that
attr()
has two components, a main one whose type could be anticipated, and a fallback that could be of a different type).PROXY
values can be cast to aCSSPrimitiveValue
. -
TYPED
A typed primitive value, includes numbers and identifiers.You can cast to
CSSTypedValue
(interface) orTypedValue
(base implementation class). -
LIST
A list of values.You can always cast to
CSSValueList
but, unless you are dealing with the argument list of aFUNCTION
, it is better to cast directly to aValueList
. -
SHORTHAND
A shorthand property.Declared shorthands can be retrieved from style declarations.
Cast it to
CSSShorthandValue
to have access to the set of longhand property names set by the shorthand.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-