public class CSSValueImpl extends AbstractLocatable implements Serializable
CSSValueImpl class can represent either a
CSSPrimitiveValue or a CSSValueList so that
the type can successfully change when using setCssText.| Modifier and Type | Class and Description |
|---|---|
static class |
CSSValueImpl.CSSPrimitiveValueType
CSSPrimitiveValueType enum.
|
static class |
CSSValueImpl.CSSValueType
CSSValueType enum.
|
| Constructor and Description |
|---|
CSSValueImpl(LexicalUnit value)
Ctor.
|
CSSValueImpl(LexicalUnit value,
boolean forcePrimitive)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCssText()
getCssText.
|
CSSValueImpl.CSSValueType |
getCssValueType()
getCssValueType.
|
double |
getDoubleValue()
getDoubleValue.
|
int |
getLength() |
LexicalUnit.LexicalUnitType |
getLexicalUnitType()
getLexicalUnitType.
|
CSSValueImpl.CSSPrimitiveValueType |
getPrimitiveType()
getPrimitiveType.
|
String |
getStringValue()
getStringValue.
|
Object |
getValue()
getValue.
|
int |
hashCode() |
CSSValueImpl |
item(int index)
item.
|
void |
setCssText(String cssText)
Sets the css text.
|
void |
setDoubleValue(double doubleValue)
Sets the double value to a new value.
|
String |
toString() |
getLocator, setLocatorpublic CSSValueImpl(LexicalUnit value, boolean forcePrimitive)
value - the lexical unit valueforcePrimitive - true or falsepublic CSSValueImpl(LexicalUnit value)
value - the valuepublic Object getValue()
getValue.
public String getCssText()
getCssText.
public void setCssText(String cssText) throws DOMException
cssText - the new css textDOMException - in case of errorpublic CSSValueImpl.CSSValueType getCssValueType()
getCssValueType.
public CSSValueImpl.CSSPrimitiveValueType getPrimitiveType()
getPrimitiveType.
public LexicalUnit.LexicalUnitType getLexicalUnitType()
getLexicalUnitType.
public void setDoubleValue(double doubleValue)
throws DOMException
doubleValue - the new valueDOMException - in case of errorpublic double getDoubleValue()
throws DOMException
getDoubleValue.
DOMException - in case of errorpublic String getStringValue() throws DOMException
getStringValue.
DOMException - case of errorpublic int getLength()
DOMException - in case of errorpublic CSSValueImpl item(int index)
item.
index - the positionCopyright © 2025 HtmlUnit. All rights reserved.