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 Object implements org.w3c.dom.css.CSSStyleDeclaration
This class represents the computed style of an element.
  • Field Details

    • 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 Details

  • Method Details

    • getCssText

      public String getCssText()
      DOM: Implements CSSStyleDeclaration.getCssText().
      Specified by:
      getCssText in interface org.w3c.dom.css.CSSStyleDeclaration
    • setCssText

      public void setCssText(String cssText) throws DOMException
      DOM: Implements CSSStyleDeclaration.setCssText(String). Throws a NO_MODIFICATION_ALLOWED_ERR DOMException.
      Specified by:
      setCssText in interface org.w3c.dom.css.CSSStyleDeclaration
      Throws:
      DOMException
    • getPropertyValue

      public String getPropertyValue(String propertyName)
      DOM: Implements CSSStyleDeclaration.getPropertyValue(String).
      Specified by:
      getPropertyValue in interface org.w3c.dom.css.CSSStyleDeclaration
    • getPropertyCSSValue

      public org.w3c.dom.css.CSSValue getPropertyCSSValue(String propertyName)
      DOM: Implements CSSStyleDeclaration.getPropertyCSSValue(String).
      Specified by:
      getPropertyCSSValue in interface org.w3c.dom.css.CSSStyleDeclaration
    • removeProperty

      public String removeProperty(String propertyName) throws DOMException
      DOM: Implements CSSStyleDeclaration.removeProperty(String).
      Specified by:
      removeProperty in interface org.w3c.dom.css.CSSStyleDeclaration
      Throws:
      DOMException
    • getPropertyPriority

      public String getPropertyPriority(String propertyName)
      DOM: Implements CSSStyleDeclaration.getPropertyPriority(String).
      Specified by:
      getPropertyPriority in interface org.w3c.dom.css.CSSStyleDeclaration
    • setProperty

      public void setProperty(String propertyName, String value, String prio) throws DOMException
      DOM: Implements CSSStyleDeclaration.setProperty(String,String,String).
      Specified by:
      setProperty in interface org.w3c.dom.css.CSSStyleDeclaration
      Throws:
      DOMException
    • getLength

      public int getLength()
      DOM: Implements CSSStyleDeclaration.getLength().
      Specified by:
      getLength in interface org.w3c.dom.css.CSSStyleDeclaration
    • item

      public String item(int index)
      DOM: Implements CSSStyleDeclaration.item(int).
      Specified by:
      item in interface org.w3c.dom.css.CSSStyleDeclaration
    • getParentRule

      public org.w3c.dom.css.CSSRule getParentRule()
      DOM: Implements CSSStyleDeclaration.getParentRule().
      Specified by:
      getParentRule in interface org.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.