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.StyleSheetList
Implementation 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 void
add(org.w3c.dom.css.CSSStyleSheet cssStyleSheet)
Adds a CSSStyleSheet.java.util.List<org.w3c.dom.css.CSSStyleSheet>
getCSSStyleSheets()
int
getLength()
org.w3c.dom.stylesheets.StyleSheet
item(int index)
org.w3c.dom.stylesheets.StyleSheet
merge()
Merges all StyleSheets in this list into one.void
setCSSStyleSheets(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:
getLength
in interfaceorg.w3c.dom.stylesheets.StyleSheetList
-
item
public org.w3c.dom.stylesheets.StyleSheet item(int index)
- Specified by:
item
in 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
-
-