info.informatica.doc.dom4j
Class XHTMLDocumentFactory.DOM4JCSSStyleSheetFactory

java.lang.Object
  extended by info.informatica.doc.style.css.CSSStyleSheetFactory
      extended by info.informatica.doc.dom4j.XHTMLDocumentFactory.DOM4JCSSStyleSheetFactory
Enclosing class:
XHTMLDocumentFactory

public class XHTMLDocumentFactory.DOM4JCSSStyleSheetFactory
extends CSSStyleSheetFactory

CSS2 style sheet factory for DOM.

Author:
Carlos Amengual (amengual at informatica.info)

Field Summary
 
Fields inherited from class info.informatica.doc.style.css.CSSStyleSheetFactory
XHTML_NAMESPACE_URI
 
Method Summary
 org.w3c.dom.css.CSSStyleSheet createStyleSheet(String namespaceUri, org.w3c.dom.stylesheets.MediaList mediaList)
          Creates a CSS style sheet.
 DOM4JCSSStyleSheet createStyleSheet(XHTMLElement ownerElement, String namespaceUri, org.w3c.dom.stylesheets.MediaList mediaList)
          Creates a CSS style sheet.
 
Methods inherited from class info.informatica.doc.style.css.CSSStyleSheetFactory
createStyleSheet, createStyleSheet, loadCSSfromClasspath, loadXHTMLDefaultSheet, parse, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createStyleSheet

public org.w3c.dom.css.CSSStyleSheet createStyleSheet(String namespaceUri,
                                                      org.w3c.dom.stylesheets.MediaList mediaList)
Creates a CSS style sheet.

Specified by:
createStyleSheet in class CSSStyleSheetFactory
Parameters:
namespaceUri - the Namespace URI for the style sheet.
mediaList - the target media list for style information.
Returns:
the style sheet.

createStyleSheet

public DOM4JCSSStyleSheet createStyleSheet(XHTMLElement ownerElement,
                                           String namespaceUri,
                                           org.w3c.dom.stylesheets.MediaList mediaList)
Creates a CSS style sheet.

Parameters:
ownerElement - the Element that associates the style sheet to the document. In XHTML it can be a link or style element. For style sheets that are included by other style sheets, the value of this attribute is null.
namespaceUri - the Namespace URI for the style sheet.
mediaList - the target media list for style information.
Returns:
the style sheet.


Copyright © 2011 informatica.info. All Rights Reserved.