Package com.steadystate.css.dom
Class CSSStyleSheetListImpl
- java.lang.Object
-
- com.steadystate.css.dom.CSSStyleSheetListImpl
-
- All Implemented Interfaces:
org.w3c.dom.stylesheets.StyleSheetList
public class CSSStyleSheetListImpl extends java.lang.Object implements org.w3c.dom.stylesheets.StyleSheetListImplementation ofStyleSheetList.- Version:
- $Id: CSSStyleSheetListImpl.java,v 1.3 2008/03/26 02:17:24 sdanig Exp $
- Author:
- Johannes Koch
-
-
Constructor Summary
Constructors Constructor Description CSSStyleSheetListImpl()Creates a new instance of CSSStyleSheetListImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.w3c.dom.css.CSSStyleSheet cssStyleSheet)Adds a CSSStyleSheet.java.util.List<org.w3c.dom.css.CSSStyleSheet>getCSSStyleSheets()intgetLength()org.w3c.dom.stylesheets.StyleSheetitem(int index)org.w3c.dom.stylesheets.StyleSheetmerge()Merges all StyleSheets in this list into one.voidsetCSSStyleSheets(java.util.List<org.w3c.dom.css.CSSStyleSheet> cssStyleSheets)
-
-
-
Method Detail
-
getCSSStyleSheets
public java.util.List<org.w3c.dom.css.CSSStyleSheet> getCSSStyleSheets()
-
setCSSStyleSheets
public void setCSSStyleSheets(java.util.List<org.w3c.dom.css.CSSStyleSheet> cssStyleSheets)
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceorg.w3c.dom.stylesheets.StyleSheetList
-
item
public org.w3c.dom.stylesheets.StyleSheet item(int index)
- Specified by:
itemin interfaceorg.w3c.dom.stylesheets.StyleSheetList
-
add
public void add(org.w3c.dom.css.CSSStyleSheet cssStyleSheet)
Adds a CSSStyleSheet.- Parameters:
cssStyleSheet- the CSSStyleSheet
-
merge
public org.w3c.dom.stylesheets.StyleSheet merge()
Merges all StyleSheets in this list into one.- Returns:
- the new (merged) StyleSheet
-
-