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) |
CounterImpl |
getCounterValue() |
String |
getCssText() |
CSSValueImpl.CSSValueType |
getCssValueType() |
double |
getDoubleValue() |
int |
getLength() |
LexicalUnit.LexicalUnitType |
getLexicalUnitType() |
CSSValueImpl.CSSPrimitiveValueType |
getPrimitiveType() |
RectImpl |
getRectValue() |
RGBColorImpl |
getRGBColorValue() |
String |
getStringValue() |
Object |
getValue() |
int |
hashCode() |
CSSValueImpl |
item(int index) |
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()
public String getCssText()
public void setCssText(String cssText) throws DOMException
cssText - the new css textDOMException - in case of errorpublic CSSValueImpl.CSSValueType getCssValueType()
public CSSValueImpl.CSSPrimitiveValueType getPrimitiveType()
public LexicalUnit.LexicalUnitType getLexicalUnitType()
public void setDoubleValue(double doubleValue)
throws DOMException
doubleValue - the new valueDOMException - in case of errorpublic double getDoubleValue()
throws DOMException
DOMException - in case of errorpublic String getStringValue() throws DOMException
DOMException - case of errorpublic CounterImpl getCounterValue() throws DOMException
DOMException - in case of errorpublic RectImpl getRectValue() throws DOMException
DOMException - in case of errorpublic RGBColorImpl getRGBColorValue() throws DOMException
DOMException - in case of errorpublic int getLength()
DOMException - in case of errorpublic CSSValueImpl item(int index)
index - the positionDOMException - in case of errorCopyright © 2020. All rights reserved.