|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.css.dom.CSSOMComputedStyle
This class represents the computed style of an element.
| Inner Class Summary | |
protected class |
CSSOMComputedStyle.ComputedCSSValue
To manage a computed CSSValue. |
| Field Summary | |
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 Summary | |
CSSOMComputedStyle(CSSEngine e,
CSSStylableElement elt,
java.lang.String pseudoElt)
Creates a new computed style. |
|
| Method Summary | |
protected 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(). |
CSSRule |
getParentRule()
DOM: Implements CSSStyleDeclaration.getParentRule(). |
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). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CSSEngine cssEngine
protected CSSStylableElement element
protected java.lang.String pseudoElement
protected java.util.Map values
| Constructor Detail |
public CSSOMComputedStyle(CSSEngine e,
CSSStylableElement elt,
java.lang.String pseudoElt)
| Method Detail |
public java.lang.String getCssText()
CSSStyleDeclaration.getCssText().getCssText in interface CSSStyleDeclarationorg.w3c.dom.css.CSSStyleDeclarationDOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
public void setCssText(java.lang.String cssText)
throws DOMException
CSSStyleDeclaration.setCssText(String).
Throws a NO_MODIFICATION_ALLOWED_ERR DOMException.setCssText in interface CSSStyleDeclarationorg.w3c.dom.css.CSSStyleDeclarationDOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax
error and is unparsable.
public java.lang.String getPropertyValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyValue(String).getPropertyValue in interface CSSStyleDeclarationorg.w3c.dom.css.CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS
property index.public CSSValue getPropertyCSSValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyCSSValue(String).getPropertyCSSValue in interface CSSStyleDeclarationorg.w3c.dom.css.CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS
property index.null if the
property has not been set.
public java.lang.String removeProperty(java.lang.String propertyName)
throws DOMException
CSSStyleDeclaration.removeProperty(String).removeProperty in interface CSSStyleDeclarationorg.w3c.dom.css.CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS
property index.DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly
or the property is readonly.public java.lang.String getPropertyPriority(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyPriority(String).getPropertyPriority in interface CSSStyleDeclarationorg.w3c.dom.css.CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS
property index."important") if one exists. The empty string if none
exists.
public void setProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.String prio)
throws DOMException
CSSStyleDeclaration.setProperty(String,String,String).setProperty in interface CSSStyleDeclarationorg.w3c.dom.css.CSSStyleDeclarationpropertyName - The name of the CSS property. See the CSS
property index.value - The new value of the property.priority - The new priority of the property (e.g.
"important").DOMException - SYNTAX_ERR: Raised if the specified value has a syntax error and is
unparsable.
public int getLength()
CSSStyleDeclaration.getLength().getLength in interface CSSStyleDeclarationpublic java.lang.String item(int index)
CSSStyleDeclaration.item(int).item in interface CSSStyleDeclarationorg.w3c.dom.css.CSSStyleDeclarationindex - Index of the property name to retrieve.public CSSRule getParentRule()
CSSStyleDeclaration.getParentRule().getParentRule in interface CSSStyleDeclarationprotected CSSValue createCSSValue(int idx)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||