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 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
      • getActiveStyleDeclarations

        public final java.util.Collection getActiveStyleDeclarations​(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)