fi.hut.tml.xsmiles.mlfc.css
Class CSSImpl2

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.css.CSSImpl2
All Implemented Interfaces:
XSmilesStyleSheet

public class CSSImpl2
extends java.lang.Object
implements XSmilesStyleSheet

Author:
alessandro

Field Summary
protected  Selectors cssSelectors
           
 
Constructor Summary
CSSImpl2()
           
CSSImpl2(MediaQueryEvaluator mqe, org.w3c.dom.Document doc)
           
 
Method Summary
 void addXMLDefaultStyleSheet(java.net.URL defaultUrl)
          Add a new default (User Agent) stylesheet
 void addXMLStyleSheet(java.lang.String stylesheetText, java.net.URL baseURL)
          Add a new author stylesheet
 void addXMLStyleSheet(java.net.URL stylesheetUrl)
          Add a new author stylesheet
protected  void createCSSSelectors(org.w3c.dom.Document doc)
           
 Selectors getCSSSelectors()
           
 org.w3c.dom.css.CSSStyleDeclaration getParsedStyle(StylableElement elem)
          This method is the main entry point for the MLFCs.
protected  RuleTreeNode matchRules(org.w3c.dom.css.CSSStyleSheet ss, StylableElement elem, XSmilesCSSStyleDeclarationImpl style)
           
 void prepareStyleSheet(org.w3c.dom.css.CSSStyleSheet ss)
          prepare a parsed stylesheet (add mediaqueryevaluator + do sorting)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cssSelectors

protected Selectors cssSelectors
Constructor Detail

CSSImpl2

public CSSImpl2(MediaQueryEvaluator mqe,
                org.w3c.dom.Document doc)

CSSImpl2

public CSSImpl2()
Method Detail

createCSSSelectors

protected void createCSSSelectors(org.w3c.dom.Document doc)

getCSSSelectors

public Selectors getCSSSelectors()
Specified by:
getCSSSelectors in interface XSmilesStyleSheet

getParsedStyle

public org.w3c.dom.css.CSSStyleDeclaration getParsedStyle(StylableElement elem)
This method is the main entry point for the MLFCs. It gets the style for a single element.

Specified by:
getParsedStyle in interface XSmilesStyleSheet

matchRules

protected RuleTreeNode matchRules(org.w3c.dom.css.CSSStyleSheet ss,
                                  StylableElement elem,
                                  XSmilesCSSStyleDeclarationImpl style)

prepareStyleSheet

public void prepareStyleSheet(org.w3c.dom.css.CSSStyleSheet ss)
Description copied from interface: XSmilesStyleSheet
prepare a parsed stylesheet (add mediaqueryevaluator + do sorting)

Specified by:
prepareStyleSheet in interface XSmilesStyleSheet

addXMLDefaultStyleSheet

public void addXMLDefaultStyleSheet(java.net.URL defaultUrl)
Add a new default (User Agent) stylesheet

Specified by:
addXMLDefaultStyleSheet in interface XSmilesStyleSheet

addXMLStyleSheet

public void addXMLStyleSheet(java.net.URL stylesheetUrl)
Add a new author stylesheet

Specified by:
addXMLStyleSheet in interface XSmilesStyleSheet

addXMLStyleSheet

public void addXMLStyleSheet(java.lang.String stylesheetText,
                             java.net.URL baseURL)
Add a new author stylesheet

Specified by:
addXMLStyleSheet in interface XSmilesStyleSheet


X-Smiles 1.2