public class CSSRuleListImpl extends java.lang.Object implements CSSRuleList, java.io.Serializable
| Constructor and Description |
|---|
CSSRuleListImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(CSSRule rule) |
void |
delete(int index) |
int |
getLength()
The number of
CSSRules in the list. |
void |
insert(CSSRule rule,
int index) |
CSSRule |
item(int index)
Used to retrieve a CSS rule by ordinal index.
|
java.lang.String |
toString() |
public int getLength()
CSSRuleListCSSRules in the list. The range of valid
child rule indices is 0 to length-1
inclusive.getLength in interface CSSRuleListpublic CSSRule item(int index)
CSSRuleListnull.item in interface CSSRuleListindex position in the
CSSRuleList, or null if that is not a
valid index.public void add(CSSRule rule)
public void insert(CSSRule rule, int index)
public void delete(int index)
public java.lang.String toString()
toString in class java.lang.Object