public class CSSOMComputedStyle extends Object implements CSSStyleDeclaration
Modifier and Type | Class and Description |
---|---|
class |
CSSOMComputedStyle.ComputedCSSValue
To manage a computed CSSValue.
|
Modifier and Type | Field and Description |
---|---|
protected CSSEngine |
cssEngine
The CSS engine used to compute the values.
|
protected CSSStylableElement |
element
The associated element.
|
protected String |
pseudoElement
The optional pseudo-element.
|
protected Map |
values
The CSS values.
|
Constructor and Description |
---|
CSSOMComputedStyle(CSSEngine e,
CSSStylableElement elt,
String pseudoElt)
Creates a new computed style.
|
protected CSSEngine cssEngine
protected CSSStylableElement element
protected String pseudoElement
protected Map values
public CSSOMComputedStyle(CSSEngine e, CSSStylableElement elt, String pseudoElt)
public String getCssText()
CSSStyleDeclaration.getCssText()
.getCssText
in interface CSSStyleDeclaration
public void setCssText(String cssText) throws DOMException
CSSStyleDeclaration.setCssText(String)
.
Throws a NO_MODIFICATION_ALLOWED_ERR DOMException
.setCssText
in interface CSSStyleDeclaration
DOMException
public String getPropertyValue(String propertyName)
CSSStyleDeclaration.getPropertyValue(String)
.getPropertyValue
in interface CSSStyleDeclaration
public CSSValue getPropertyCSSValue(String propertyName)
CSSStyleDeclaration.getPropertyCSSValue(String)
.getPropertyCSSValue
in interface CSSStyleDeclaration
public String removeProperty(String propertyName) throws DOMException
CSSStyleDeclaration.removeProperty(String)
.removeProperty
in interface CSSStyleDeclaration
DOMException
public String getPropertyPriority(String propertyName)
CSSStyleDeclaration.getPropertyPriority(String)
.getPropertyPriority
in interface CSSStyleDeclaration
public void setProperty(String propertyName, String value, String prio) throws DOMException
CSSStyleDeclaration.setProperty(String,String,String)
.setProperty
in interface CSSStyleDeclaration
DOMException
public int getLength()
CSSStyleDeclaration.getLength()
.getLength
in interface CSSStyleDeclaration
public String item(int index)
CSSStyleDeclaration.item(int)
.item
in interface CSSStyleDeclaration
public CSSRule getParentRule()
CSSStyleDeclaration.getParentRule()
.getParentRule
in interface CSSStyleDeclaration
protected CSSValue createCSSValue(int idx)
Copyright ? 2009 Apache Software Foundation. All Rights Reserved.