public class CSSOMComputedStyle
extends java.lang.Object
implements org.w3c.dom.css.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 java.lang.String |
pseudoElement
The optional pseudo-element.
|
protected java.util.Map |
values
The CSS values.
|
Constructor and Description |
---|
CSSOMComputedStyle(CSSEngine e,
CSSStylableElement elt,
java.lang.String pseudoElt)
Creates a new computed style.
|
Modifier and Type | Method and Description |
---|---|
protected org.w3c.dom.css.CSSValue |
createCSSValue(int idx)
Creates a CSSValue to manage the value at the given index.
|
java.lang.String |
getCssText()
DOM: Implements
CSSStyleDeclaration.getCssText() . |
int |
getLength()
DOM: Implements
CSSStyleDeclaration.getLength() . |
org.w3c.dom.css.CSSRule |
getParentRule()
DOM: Implements
CSSStyleDeclaration.getParentRule() . |
org.w3c.dom.css.CSSValue |
getPropertyCSSValue(java.lang.String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyCSSValue(String) . |
java.lang.String |
getPropertyPriority(java.lang.String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyPriority(String) . |
java.lang.String |
getPropertyValue(java.lang.String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyValue(String) . |
java.lang.String |
item(int index)
DOM: Implements
CSSStyleDeclaration.item(int) . |
java.lang.String |
removeProperty(java.lang.String propertyName)
DOM: Implements
CSSStyleDeclaration.removeProperty(String) . |
void |
setCssText(java.lang.String cssText)
DOM: Implements
CSSStyleDeclaration.setCssText(String) . |
void |
setProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.String prio)
DOM: Implements
CSSStyleDeclaration.setProperty(String,String,String) . |
protected CSSEngine cssEngine
protected CSSStylableElement element
protected java.lang.String pseudoElement
protected java.util.Map values
public CSSOMComputedStyle(CSSEngine e, CSSStylableElement elt, java.lang.String pseudoElt)
public java.lang.String getCssText()
CSSStyleDeclaration.getCssText()
.getCssText
in interface org.w3c.dom.css.CSSStyleDeclaration
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException
CSSStyleDeclaration.setCssText(String)
.
Throws a NO_MODIFICATION_ALLOWED_ERR DOMException
.setCssText
in interface org.w3c.dom.css.CSSStyleDeclaration
org.w3c.dom.DOMException
public java.lang.String getPropertyValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyValue(String)
.getPropertyValue
in interface org.w3c.dom.css.CSSStyleDeclaration
public org.w3c.dom.css.CSSValue getPropertyCSSValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyCSSValue(String)
.getPropertyCSSValue
in interface org.w3c.dom.css.CSSStyleDeclaration
public java.lang.String removeProperty(java.lang.String propertyName) throws org.w3c.dom.DOMException
CSSStyleDeclaration.removeProperty(String)
.removeProperty
in interface org.w3c.dom.css.CSSStyleDeclaration
org.w3c.dom.DOMException
public java.lang.String getPropertyPriority(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyPriority(String)
.getPropertyPriority
in interface org.w3c.dom.css.CSSStyleDeclaration
public void setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String prio) throws org.w3c.dom.DOMException
CSSStyleDeclaration.setProperty(String,String,String)
.setProperty
in interface org.w3c.dom.css.CSSStyleDeclaration
org.w3c.dom.DOMException
public int getLength()
CSSStyleDeclaration.getLength()
.getLength
in interface org.w3c.dom.css.CSSStyleDeclaration
public java.lang.String item(int index)
CSSStyleDeclaration.item(int)
.item
in interface org.w3c.dom.css.CSSStyleDeclaration
public org.w3c.dom.css.CSSRule getParentRule()
CSSStyleDeclaration.getParentRule()
.getParentRule
in interface org.w3c.dom.css.CSSStyleDeclaration
protected org.w3c.dom.css.CSSValue createCSSValue(int idx)
Copyright ? 2015 Apache Software Foundation. All Rights Reserved.