org.apache.batik.css
Class CSSOMRuleList
java.lang.Object
|
+--org.apache.batik.css.CSSOMRuleList
- All Implemented Interfaces:
- CSSRuleList
- public class CSSOMRuleList
- extends java.lang.Object
- implements CSSRuleList
This class provides an implementation of the
CSSRuleList
interface.
Field Summary |
protected java.util.List |
list
The list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
list
protected java.util.List list
- The list.
CSSOMRuleList
public CSSOMRuleList()
getLength
public int getLength()
- DOM: Implements
CSSRuleList.getLength()
.
- Specified by:
getLength
in interface CSSRuleList
item
public CSSRule item(int index)
- DOM: Implements
CSSRuleList.item(int)
.
- Specified by:
item
in interface CSSRuleList
- Following copied from interface:
org.w3c.dom.css.CSSRuleList
- Parameters:
index
- Index into the collection- Returns:
- The style rule at the
index
position in the
CSSRuleList
, or null
if that is not a
valid index.
insert
public int insert(CSSRule rule,
int index)
throws DOMException
- Inserts a rule in the list.
- Throws:
DOMException
- INDEX_SIZE_ERR: Raised if the specified index is not a valid
insertion point.
delete
public CSSRule delete(int index)
- Removes a rule from the list.
- Throws:
DOMException
- INDEX_SIZE_ERR: Raised if the specified index is not a valid
insertion point.
append
public void append(CSSRule rule)
- Appends a rule to the list.
Copyright © 2001 Apache Software Foundation. All Rights Reserved.