Interface CSSRuleList<T extends CSSRule>

All Superinterfaces:
CSSRuleList, Iterable<T>
All Known Implementing Classes:
CSSRuleArrayList, MarginRuleList

public interface CSSRuleList<T extends CSSRule> extends CSSRuleList, Iterable<T>
A rule list with additional utility methods.
  • Method Details

    • clear

      void clear()
      Remove all the rules in this list.
    • item

      T item(int index)
      Retrieve a CSS rule by ordinal index. The order in this collection represents the order of the rules in the CSS style sheet.
      Specified by:
      item in interface CSSRuleList
      index - the index in the collection.
      the rule at the index position, or null if the index is less than zero or equal or greater to the list length.
    • iterator

      Iterator<T> iterator()
      Specified by:
      iterator in interface Iterable<T extends CSSRule>
    • toMinifiedString

      String toMinifiedString()
    • writeCssText

      void writeCssText(SimpleWriter wri, StyleFormattingContext context) throws IOException