Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.steadystate.css.dom
Class CSSRuleListImpl  view CSSRuleListImpl download CSSRuleListImpl.java

java.lang.Object
  extended bycom.steadystate.css.dom.CSSRuleListImpl
All Implemented Interfaces:
org.w3c.dom.css.CSSRuleList, java.io.Serializable

public class CSSRuleListImpl
extends java.lang.Object
implements org.w3c.dom.css.CSSRuleList, java.io.Serializable


Field Summary
private  java.util.Vector _rules
           
 
Constructor Summary
CSSRuleListImpl()
           
 
Method Summary
 void add(org.w3c.dom.css.CSSRule rule)
           
 void delete(int index)
           
 int getLength()
          The number of CSSRules in the list.
 void insert(org.w3c.dom.css.CSSRule rule, int index)
           
 org.w3c.dom.css.CSSRule item(int index)
          Used to retrieve a CSS rule by ordinal index.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_rules

private java.util.Vector _rules
Constructor Detail

CSSRuleListImpl

public CSSRuleListImpl()
Method Detail

getLength

public int getLength()
Description copied from interface: org.w3c.dom.css.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 org.w3c.dom.css.CSSRuleList

item

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

add

public void add(org.w3c.dom.css.CSSRule rule)

insert

public void insert(org.w3c.dom.css.CSSRule rule,
                   int index)

delete

public void delete(int index)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).