Class CSSDeclarationRule

    • Constructor Detail

      • CSSDeclarationRule

        protected CSSDeclarationRule​(StyleSheet parentStyle,
                                     StyleRule parentRule)
    • Method Detail

      • isImportant

        public boolean isImportant​(StyleKey propertyName)
      • setImportant

        protected void setImportant​(StyleKey propertyName,
                                    boolean important)
      • getPropertyCSSValue

        public CSSValue getPropertyCSSValue​(StyleKey propertyName)
      • setPropertyValueAsString

        public void setPropertyValueAsString​(StyleKey styleKey,
                                             String value)
        Parses the given value for the stylekey. As stylekeys are only defined for atomic style declarations, this method will only affect a single name-value pair.
        Parameters:
        styleKey -
        value -
      • setPropertyValue

        public void setPropertyValue​(StyleKey propertyName,
                                     CSSValue value)
      • setPropertyValue

        public void setPropertyValue​(StyleKey propertyName,
                                     CSSValue value,
                                     boolean important)
      • removeProperty

        public void removeProperty​(StyleKey name)
      • clear

        public void clear()
      • getPropertyKeysAsArray

        public StyleKey[] getPropertyKeysAsArray()
      • getStyleValues

        public CSSValue[] getStyleValues()
      • getImportantValues

        public boolean[] getImportantValues()
      • isEmpty

        public boolean isEmpty()