com.steadystate.css.dom
Class CSSRuleListImpl
java.lang.Object
com.steadystate.css.dom.CSSRuleListImpl
- CSSRuleList, Serializable
public class CSSRuleListImpl
extends java.lang.Object
CSSRuleListImpl
public CSSRuleListImpl()
delete
public void delete(int index)
getLength
public int getLength()
The number of CSSRules
in the list. The range of valid
child rule indices is 0
to length-1
inclusive.
- getLength in interface CSSRuleList
insert
public void insert(CSSRule rule,
int index)
item
public CSSRule item(int index)
Used 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 returns null
.
- item in interface CSSRuleList
- The style rule at the
index
position in the
CSSRuleList
, or null
if that is not a
valid index.
toString
public String toString()