Class CSSStyleDeclarationImpl

    • Constructor Detail

      • CSSStyleDeclarationImpl

        public CSSStyleDeclarationImpl​(AbstractCSSRuleImpl parentRule)
        Ctor.
        Parameters:
        parentRule - the parent role
    • Method Detail

      • getProperties

        public List<Property> getProperties()

        getProperties.

        Returns:
        the properties
      • getCssText

        public String getCssText()
        Returns:
        the current css text
      • setCssText

        public void setCssText​(String cssText)
                        throws DOMException
        Sets the css text.
        Parameters:
        cssText - the new css text
        Throws:
        DOMException - in case of error
      • setCssText

        public void setCssText​(String cssText,
                               CSSErrorHandler cssErrorHandler)
                        throws DOMException
        Sets the css text.
        Parameters:
        cssText - the new css text
        cssErrorHandler - the CSSErrorHandler to be used
        Throws:
        DOMException - in case of error
      • getPropertyValue

        public String getPropertyValue​(String propertyName)
        Parameters:
        propertyName - the property name
        Returns:
        the property value
      • getPropertyCSSValue

        public CSSValueImpl getPropertyCSSValue​(String propertyName)

        getPropertyCSSValue.

        Parameters:
        propertyName - the property name
        Returns:
        the property value
      • removeProperty

        public String removeProperty​(String propertyName)
                              throws DOMException
        Remove a property.
        Parameters:
        propertyName - the property name
        Returns:
        the removed property
        Throws:
        DOMException - in case of error
      • getPropertyPriority

        public String getPropertyPriority​(String propertyName)

        getPropertyPriority.

        Parameters:
        propertyName - the name of the property
        Returns:
        the priority
      • setProperty

        public void setProperty​(String propertyName,
                                String value,
                                String priority)
                         throws DOMException
        Set a property.
        Parameters:
        propertyName - the name of the property
        value - the new value
        priority - the priority
        Throws:
        DOMException - in case of error
      • getLength

        public int getLength()

        getLength.

        Returns:
        the properties count
      • getParentRule

        public AbstractCSSRuleImpl getParentRule()

        getParentRule.

        Returns:
        the parent rule
      • addProperty

        public void addProperty​(Property p)
        Add a property.
        Parameters:
        p - the property to add
      • getPropertyDeclaration

        public Property getPropertyDeclaration​(String propertyName)

        getPropertyDeclaration.

        Parameters:
        propertyName - the name of the propery
        Returns:
        the property
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object