Package com.steadystate.css.dom
Class CSSRuleListImpl
- java.lang.Object
-
- com.steadystate.css.dom.CSSRuleListImpl
-
- All Implemented Interfaces:
java.io.Serializable,CSSRuleList
public class CSSRuleListImpl extends java.lang.Object implements CSSRuleList, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CSSRuleListImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(CSSRule rule)voiddelete(int index)intgetLength()The number ofCSSRulesin the list.voidinsert(CSSRule rule, int index)CSSRuleitem(int index)Used to retrieve a CSS rule by ordinal index.java.lang.StringtoString()
-
-
-
Method Detail
-
getLength
public int getLength()
Description copied from interface:CSSRuleListThe number ofCSSRulesin the list. The range of valid child rule indices is0tolength-1inclusive.- Specified by:
getLengthin interfaceCSSRuleList
-
item
public CSSRule item(int index)
Description copied from interface:CSSRuleListUsed to retrieve a CSS rule by ordinal index. The order in this collection represents the order of the rules in the CSS style sheet. If index is greater than or equal to the number of rules in the list, this returnsnull.- Specified by:
itemin interfaceCSSRuleList- Returns:
- The style rule at the
indexposition in theCSSRuleList, ornullif that is not a valid index.
-
add
public void add(CSSRule rule)
-
insert
public void insert(CSSRule rule, int index)
-
delete
public void delete(int index)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-