org.lobobrowser.html.style
Class StyleSheetAggregator

java.lang.Object
  extended by org.lobobrowser.html.style.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(java.util.Collection styleSheets)
           
 boolean affectedByPseudoNameInAncestor(HTMLElementImpl element, HTMLElementImpl ancestor, java.lang.String elementName, java.lang.String elementId, java.lang.String[] classArray, java.lang.String pseudoName)
           
 java.util.Collection getStyleDeclarations(HTMLElementImpl element, java.lang.String elementName, java.lang.String elementId, java.lang.String className, java.util.Set pseudoNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleSheetAggregator

public StyleSheetAggregator(HTMLDocumentImpl document)
Method Detail

addStyleSheets

public final void addStyleSheets(java.util.Collection styleSheets)
                          throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getStyleDeclarations

public final java.util.Collection getStyleDeclarations(HTMLElementImpl element,
                                                       java.lang.String elementName,
                                                       java.lang.String elementId,
                                                       java.lang.String className,
                                                       java.util.Set pseudoNames)

affectedByPseudoNameInAncestor

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