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 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.
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)