Package org.lobobrowser.html.style
Class StyleSheetAggregator
- java.lang.Object
-
- 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 theaddStyleSheet(CSSStyleSheet)
method. HTML elements have astyle
object that has a list ofCSSStyleDeclaration
instances. The instances inserted in that list are obtained by means of the#getStyleDeclarations(HTMLElementImpl, String, String, String)
method.
-
-
Constructor Summary
Constructors Constructor Description StyleSheetAggregator(HTMLDocumentImpl document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getActiveStyleDeclarations(HTMLElementImpl element, java.lang.String elementName, java.lang.String elementId, java.lang.String className, java.util.Set pseudoNames)
-
-
-
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)
-
-