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.

Constructor Summary

StyleSheetAggregator(HTMLDocumentImpl document)

Method Summary

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

Constructor Details

StyleSheetAggregator

public StyleSheetAggregator(HTMLDocumentImpl document)

Method Details

addStyleSheets

public final void addStyleSheets(Collection styleSheets)
            throws MalformedURLException

affectedByPseudoNameInAncestor

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

getStyleDeclarations

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