org.lobobrowser.html.style

Class StyleSheetAggregator


public class StyleSheetAggregator
extends java.lang.Object

Aggregates all style sheets in a document. Every time a new STYLE element is found, it is added to the style sheet aggreagator by means of the addStyleSheet(CSSStyleSheet) method. HTML elements have a style object that has a list of CSSStyleDeclaration instances. The instances inserted in that list are obtained by means of the getStyleDeclarations(HTMLElementImpl, String, String, String) method.
Author:
user

Constructor Summary

StyleSheetAggregator(HTMLDocumentImpl document)

Method Summary

void
addStyleSheets(Collection styleSheets)
Collection
getStyleDeclarations(HTMLElementImpl element, String elementName, String elementId, String className, Set pseudoNames)
boolean
hasPseudoName(HTMLElementImpl element, String elementName, String elementId, String[] classArray, String pseudoName)

Constructor Details

StyleSheetAggregator

public StyleSheetAggregator(HTMLDocumentImpl document)

Method Details

addStyleSheets

public final void addStyleSheets(Collection styleSheets)
            throws MalformedURLException

getStyleDeclarations

public final Collection getStyleDeclarations(HTMLElementImpl element,
                                             String elementName,
                                             String elementId,
                                             String className,
                                             Set pseudoNames)

hasPseudoName

public final boolean hasPseudoName(HTMLElementImpl element,
                                   String elementName,
                                   String elementId,
                                   String[] classArray,
                                   String pseudoName)