Class CssValues
java.lang.Object
org.eclipse.e4.ui.css.core.impl.dom.CssValues
The internal CSS value model produced by the parser. A small sealed hierarchy
of immutable values that replaces the former
Measure /
RGBColorImpl / CSSValueListImpl wrappers.
Consumers pattern-match on the record variants (CssValues.CssNumber,
CssValues.CssDimension, CssValues.CssText, CssValues.CssColor, CssValues.CssList)
and read their components. The variants also implement the W3C DOM-CSS value
interfaces as a permanent compatibility facade: IStylingEngine.getStyle
and IThemeEngine.getStyle return W3C types, and propertyHandler
contributions receive values as W3C CSSValue, so the facade must stay.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordrgb(...)or a#rgb/#rrggbbcolour.static final record26px,30%,75em- a number with a unit.static final recordA whitespace or comma separated sequence of values, e.g.static final record34or2.0- a unitless number.static interfaceA numeric value: a unitlessCssValues.CssNumberor aCssValues.CssDimensionwith a unit.static final recordA separator (currently only,) carried inside a value list, kept for parity with the historical behaviour where the comma was a list item.static interfaceA single CSS value.static final recordred,'a string',url(x),inherit.static enumUnit of aCssValues.CssNumericvalue.static interfaceA parsed CSS value: either a primitive or a whitespace/comma separated list. -
Method Summary