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 |
static class |
CSSValueImpl.CSSValueType |
| 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() |
float |
getFloatValue() |
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) |
void |
setFloatValue(float floatValue) |
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
DOMExceptionpublic CSSValueImpl.CSSValueType getCssValueType()
public CSSValueImpl.CSSPrimitiveValueType getPrimitiveType()
public LexicalUnit.LexicalUnitType getLexicalUnitType()
public void setFloatValue(float floatValue)
throws DOMException
DOMExceptionpublic float getFloatValue()
throws DOMException
DOMExceptionpublic String getStringValue() throws DOMException
DOMExceptionpublic CounterImpl getCounterValue() throws DOMException
DOMExceptionpublic RectImpl getRectValue() throws DOMException
DOMExceptionpublic RGBColorImpl getRGBColorValue() throws DOMException
DOMExceptionpublic int getLength()
public CSSValueImpl item(int index)
Copyright © 2019. All rights reserved.