Package io.sf.carte.doc.style.css
Interface CSSRuleList<T extends CSSRule>
- All Superinterfaces:
org.w3c.dom.css.CSSRuleList,Iterable<T>
- All Known Implementing Classes:
CSSRuleArrayList,MarginRuleList
A rule list with additional utility methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Remove all the rules in this list.item(int index) Retrieve a CSS rule by ordinal index.iterator()voidwriteCssText(io.sf.carte.util.SimpleWriter wri, StyleFormattingContext context) Methods inherited from interface org.w3c.dom.css.CSSRuleList
getLengthMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
clear
void clear()Remove all the rules in this list. -
item
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:
itemin interfaceorg.w3c.dom.css.CSSRuleList- Parameters:
index- the index in the collection.- Returns:
- the rule at the
indexposition, ornullif the index is less than zero or equal or greater to the list length.
-
iterator
-
toMinifiedString
String toMinifiedString() -
writeCssText
void writeCssText(io.sf.carte.util.SimpleWriter wri, StyleFormattingContext context) throws IOException - Throws:
IOException
-