Package org.lobobrowser.html.style
Class StyleSheetAggregator
java.lang.Object
org.lobobrowser.html.style.StyleSheetAggregator
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addStyleSheets
(Collection styleSheets) final boolean
affectedByPseudoNameInAncestor
(HTMLElementImpl element, HTMLElementImpl ancestor, String elementName, String elementId, String[] classArray, String pseudoName) final Collection
getActiveStyleDeclarations
(HTMLElementImpl element, String elementName, String elementId, String className, Set pseudoNames)
-
Constructor Details
-
StyleSheetAggregator
-
-
Method Details
-
addStyleSheets
- Throws:
MalformedURLException
-
getActiveStyleDeclarations
public final Collection getActiveStyleDeclarations(HTMLElementImpl element, String elementName, String elementId, String className, Set pseudoNames) -
affectedByPseudoNameInAncestor
public final boolean affectedByPseudoNameInAncestor(HTMLElementImpl element, HTMLElementImpl ancestor, String elementName, String elementId, String[] classArray, String pseudoName)
-