Interface CssValues.CssPrimitive
- All Superinterfaces:
CSSPrimitiveValue, CSSValue, CssValues.CssValue
- All Known Implementing Classes:
CssValues.CssColor, CssValues.CssDimension, CssValues.CssNumber, CssValues.CssOperator, CssValues.CssText
- Enclosing class:
CssValues
public static sealed interface CssValues.CssPrimitive
extends CssValues.CssValue, CSSPrimitiveValue
permits CssValues.CssNumber, CssValues.CssDimension, CssValues.CssText, CssValues.CssColor, CssValues.CssOperator
A single CSS value. Provides the W3C boilerplate; concrete variants only
implement
CSSPrimitiveValue.getPrimitiveType(), CSSValue.getCssText() and whichever
of getFloatValue(short) / getStringValue() /
getRGBColorValue() applies.-
Field Summary
Fields inherited from interface CSSPrimitiveValue
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URIFields inherited from interface CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST -
Method Summary
Modifier and TypeMethodDescriptiondefault Counterdefault shortdefault floatgetFloatValue(short unitType) default Rectdefault RGBColordefault Stringdefault voidsetCssText(String cssText) default voidsetFloatValue(short unitType, float floatValue) default voidsetStringValue(short stringType, String stringValue) Methods inherited from interface CSSPrimitiveValue
getPrimitiveTypeMethods inherited from interface CSSValue
getCssText
-
Method Details
-
getCssValueType
default short getCssValueType()- Specified by:
getCssValueTypein interfaceCSSValue
-
getFloatValue
- Specified by:
getFloatValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
getStringValue
- Specified by:
getStringValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
getRGBColorValue
- Specified by:
getRGBColorValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
getCounterValue
- Specified by:
getCounterValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
getRectValue
- Specified by:
getRectValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
setCssText
- Specified by:
setCssTextin interfaceCSSValue- Throws:
DOMException
-
setFloatValue
- Specified by:
setFloatValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-
setStringValue
- Specified by:
setStringValuein interfaceCSSPrimitiveValue- Throws:
DOMException
-