Package org.apache.batik.css.dom
Class CSSOMComputedStyle
- java.lang.Object
-
- org.apache.batik.css.dom.CSSOMComputedStyle
-
- All Implemented Interfaces:
org.w3c.dom.css.CSSStyleDeclaration
- Direct Known Subclasses:
CSSOMSVGComputedStyle
public class CSSOMComputedStyle extends java.lang.Object implements org.w3c.dom.css.CSSStyleDeclaration
This class represents the computed style of an element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CSSOMComputedStyle.ComputedCSSValue
To manage a computed CSSValue.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description CSSOMComputedStyle(CSSEngine e, CSSStylableElement elt, java.lang.String pseudoElt)
Creates a new computed style.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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: ImplementsCSSStyleDeclaration.getCssText()
.int
getLength()
DOM: ImplementsCSSStyleDeclaration.getLength()
.org.w3c.dom.css.CSSRule
getParentRule()
DOM: ImplementsCSSStyleDeclaration.getParentRule()
.org.w3c.dom.css.CSSValue
getPropertyCSSValue(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String)
.java.lang.String
getPropertyPriority(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String)
.java.lang.String
getPropertyValue(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String)
.java.lang.String
item(int index)
DOM: ImplementsCSSStyleDeclaration.item(int)
.java.lang.String
removeProperty(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.removeProperty(String)
.void
setCssText(java.lang.String cssText)
DOM: ImplementsCSSStyleDeclaration.setCssText(String)
.void
setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String prio)
DOM: ImplementsCSSStyleDeclaration.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 java.lang.String pseudoElement
The optional pseudo-element.
-
values
protected java.util.Map values
The CSS values.
-
-
Constructor Detail
-
CSSOMComputedStyle
public CSSOMComputedStyle(CSSEngine e, CSSStylableElement elt, java.lang.String pseudoElt)
Creates a new computed style.
-
-
Method Detail
-
getCssText
public java.lang.String getCssText()
DOM: ImplementsCSSStyleDeclaration.getCssText()
.- Specified by:
getCssText
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setCssText
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException
DOM: ImplementsCSSStyleDeclaration.setCssText(String)
. Throws a NO_MODIFICATION_ALLOWED_ERRDOMException
.- Specified by:
setCssText
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
org.w3c.dom.DOMException
-
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String)
.- Specified by:
getPropertyValue
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getPropertyCSSValue
public org.w3c.dom.css.CSSValue getPropertyCSSValue(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String)
.- Specified by:
getPropertyCSSValue
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
removeProperty
public java.lang.String removeProperty(java.lang.String propertyName) throws org.w3c.dom.DOMException
DOM: ImplementsCSSStyleDeclaration.removeProperty(String)
.- Specified by:
removeProperty
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
org.w3c.dom.DOMException
-
getPropertyPriority
public java.lang.String getPropertyPriority(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String)
.- Specified by:
getPropertyPriority
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setProperty
public void setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String prio) throws org.w3c.dom.DOMException
DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String)
.- Specified by:
setProperty
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
org.w3c.dom.DOMException
-
getLength
public int getLength()
DOM: ImplementsCSSStyleDeclaration.getLength()
.- Specified by:
getLength
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
item
public java.lang.String item(int index)
DOM: ImplementsCSSStyleDeclaration.item(int)
.- Specified by:
item
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getParentRule
public org.w3c.dom.css.CSSRule getParentRule()
DOM: ImplementsCSSStyleDeclaration.getParentRule()
.- Specified by:
getParentRule
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Returns:
- null.
-
createCSSValue
protected org.w3c.dom.css.CSSValue createCSSValue(int idx)
Creates a CSSValue to manage the value at the given index.
-
-