com.steadystate.css.dom
Class CSSRuleListImpl

java.lang.Object
  extended by 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
CSSRuleListImpl()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSRuleListImpl

public CSSRuleListImpl()
Method Detail

getLength

public int getLength()
Description copied from interface: CSSRuleList
The number of CSSRules in the list. The range of valid child rule indices is 0 to length-1 inclusive.

Specified by:
getLength in interface CSSRuleList

item

public CSSRule item(int index)
Description copied from interface: CSSRuleList
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.

Specified by:
item in interface CSSRuleList
Returns:
The style rule at the index position in the CSSRuleList, or null if 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:
toString in class java.lang.Object