Class StyleRule

  • All Implemented Interfaces:
    Rule

    public class StyleRule
    extends java.lang.Object
    implements Rule
    This class represents a style rule.
    • Field Detail

      • selectorList

        protected org.w3c.css.sac.SelectorList selectorList
        The selector list.
      • styleDeclaration

        protected StyleDeclaration styleDeclaration
        The style declaration.
    • Constructor Detail

      • StyleRule

        public StyleRule()
    • Method Detail

      • getType

        public short getType()
        Returns a constant identifying the rule type.
        Specified by:
        getType in interface Rule
      • setSelectorList

        public void setSelectorList​(org.w3c.css.sac.SelectorList sl)
        Sets the selector list.
      • getSelectorList

        public org.w3c.css.sac.SelectorList getSelectorList()
        Returns the selector list.
      • setStyleDeclaration

        public void setStyleDeclaration​(StyleDeclaration sd)
        Sets the style map.
      • getStyleDeclaration

        public StyleDeclaration getStyleDeclaration()
        Returns the style declaration.
      • toString

        public java.lang.String toString​(CSSEngine eng)
        Returns a printable representation of this style rule.
        Specified by:
        toString in interface Rule