org.apache.batik.css.dom

Class CSSOMComputedStyle

public class CSSOMComputedStyle extends Object implements CSSStyleDeclaration

This class represents the computed style of an element.
Nested Class Summary
classCSSOMComputedStyle.ComputedCSSValue
To manage a computed CSSValue.
Field Summary
protected CSSEnginecssEngine
The CSS engine used to compute the values.
protected CSSStylableElementelement
The associated element.
protected StringpseudoElement
The optional pseudo-element.
protected Mapvalues
The CSS values.
Constructor Summary
CSSOMComputedStyle(CSSEngine e, CSSStylableElement elt, String pseudoElt)
Creates a new computed style.
Method Summary
protected CSSValuecreateCSSValue(int idx)
Creates a CSSValue to manage the value at the given index.
StringgetCssText()
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getCssText().
intgetLength()
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getLength().
CSSRulegetParentRule()
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getParentRule().
CSSValuegetPropertyCSSValue(String propertyName)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getPropertyCSSValue(String).
StringgetPropertyPriority(String propertyName)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getPropertyPriority(String).
StringgetPropertyValue(String propertyName)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getPropertyValue(String).
Stringitem(int index)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#item(int).
StringremoveProperty(String propertyName)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#removeProperty(String).
voidsetCssText(String cssText)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#setCssText(String).
voidsetProperty(String propertyName, String value, String prio)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#setProperty(String,String,String).

Field Detail

cssEngine

protected CSSEngine cssEngine
The CSS engine used to compute the values.

element

protected CSSStylableElement element
The associated element.

pseudoElement

protected String pseudoElement
The optional pseudo-element.

values

protected Map values
The CSS values.

Constructor Detail

CSSOMComputedStyle

public CSSOMComputedStyle(CSSEngine e, CSSStylableElement elt, String pseudoElt)
Creates a new computed style.

Method Detail

createCSSValue

protected CSSValue createCSSValue(int idx)
Creates a CSSValue to manage the value at the given index.

getCssText

public String getCssText()
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getCssText().

getLength

public int getLength()
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getLength().

getParentRule

public CSSRule getParentRule()
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getParentRule().

Returns: null.

getPropertyCSSValue

public CSSValue getPropertyCSSValue(String propertyName)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getPropertyCSSValue(String).

getPropertyPriority

public String getPropertyPriority(String propertyName)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getPropertyPriority(String).

getPropertyValue

public String getPropertyValue(String propertyName)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#getPropertyValue(String).

item

public String item(int index)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#item(int).

removeProperty

public String removeProperty(String propertyName)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#removeProperty(String).

setCssText

public void setCssText(String cssText)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#setCssText(String). Throws a NO_MODIFICATION_ALLOWED_ERR org.w3c.dom.DOMException.

setProperty

public void setProperty(String propertyName, String value, String prio)
DOM: Implements org.w3c.dom.css.CSSStyleDeclaration#setProperty(String,String,String).
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.