Class CSSOMStyleDeclaration

  • All Implemented Interfaces:
    org.w3c.dom.css.CSSStyleDeclaration
    Direct Known Subclasses:
    CSSOMSVGStyleDeclaration

    public class CSSOMStyleDeclaration
    extends java.lang.Object
    implements org.w3c.dom.css.CSSStyleDeclaration
    This class represents a style declaration.
    • Method Detail

      • getCssText

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

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

        public java.lang.String getPropertyValue​(java.lang.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​(java.lang.String propertyName)
        DOM: Implements CSSStyleDeclaration.getPropertyCSSValue(String).
        Specified by:
        getPropertyCSSValue in interface org.w3c.dom.css.CSSStyleDeclaration
      • removeProperty

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

        public java.lang.String getPropertyPriority​(java.lang.String propertyName)
        DOM: Implements CSSStyleDeclaration.getPropertyPriority(String).
        Specified by:
        getPropertyPriority in interface org.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: Implements CSSStyleDeclaration.setProperty(String,String,String).
        Specified by:
        setProperty in interface org.w3c.dom.css.CSSStyleDeclaration
        Throws:
        org.w3c.dom.DOMException
      • getLength

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

        public java.lang.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
      • getCSSValue

        protected org.w3c.dom.css.CSSValue getCSSValue​(java.lang.String name)
        Gets the CSS value associated with the given property.
      • createCSSValue

        protected org.w3c.dom.css.CSSValue createCSSValue​(java.lang.String name)
        Creates the CSS value associated with the given property.