Interface CSSStyleRule

All Superinterfaces:
CSSDeclarationRule, CSSRule, org.w3c.dom.css.CSSRule
All Known Implementing Classes:
StyleRule

public interface CSSStyleRule extends CSSDeclarationRule
A CSS style rule.
  • Method Details

    • getSelectorText

      String getSelectorText()
      Get a parsable serialization of the selector(s).
      Returns:
      a parsable serialization of the selector list.
    • setSelectorText

      void setSelectorText(String selectorText) throws DOMException
      Parse the given string and set the selector list according to it.
      Parameters:
      selectorText - a text representation of a selector list, according to CSS syntax.
      Throws:
      DOMException
    • getSelectorList

      SelectorList getSelectorList()
      The selectors of this style rule.
      Returns:
      the selector list.
    • setSelectorList

      void setSelectorList(SelectorList selectorList)
      Set the selectors of this style rule.
      Parameters:
      selectorList - the selector list.
      Throws:
      NullPointerException - if selectorList is null.
      IllegalArgumentException - if selectorList is empty.