info.informatica.doc.style.css.dom
Class DOMCSSStyleSheet

java.lang.Object
  extended by info.informatica.doc.style.css.dom.BaseCSSStyleSheet
      extended by info.informatica.doc.style.css.dom.DOMCSSStyleSheet
All Implemented Interfaces:
Cloneable, org.w3c.dom.css.CSSStyleSheet, org.w3c.dom.stylesheets.StyleSheet

public class DOMCSSStyleSheet
extends BaseCSSStyleSheet
implements Cloneable

CSS Style Sheet for DOM.

Author:
Carlos Amengual (amengual at informatica.info)

Field Summary
 
Fields inherited from class info.informatica.doc.style.css.dom.BaseCSSStyleSheet
cssRules, currentInsertionIndex, targetMedium
 
Constructor Summary
DOMCSSStyleSheet(CSSStyleSheetFactory factory, Node ownerNode, org.w3c.dom.stylesheets.MediaList media)
           
DOMCSSStyleSheet(CSSStyleSheetFactory factory, Node ownerNode, org.w3c.dom.stylesheets.MediaList media, org.w3c.dom.css.CSSRule ownerRule)
           
 
Method Summary
 DOMCSSStyleSheet clone()
          Creates and returns a copy of this style sheet.
 org.w3c.dom.css.CSSStyleDeclaration getComputedStyle(Element elm, String pseudoElt)
          Gets the computed style for the given DOM Element and pseudo-element.
 Node getOwnerNode()
           
 
Methods inherited from class info.informatica.doc.style.css.dom.BaseCSSStyleSheet
addRule, addStyleSheet, computeStyle, createSACParser, deleteRule, getCssRules, getDisabled, getDocumentBaseURL, getHref, getMedia, getNamespaceURI, getOwnerRule, getParentStyleSheet, getStyleSheetFactory, getTargetMedium, getTitle, getType, insertRule, parseCSSStyleSheet, setDisabled, setHref, setNamespaceURI, setParentStyleSheet, setTargetMedium, setTitle, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DOMCSSStyleSheet

public DOMCSSStyleSheet(CSSStyleSheetFactory factory,
                        Node ownerNode,
                        org.w3c.dom.stylesheets.MediaList media,
                        org.w3c.dom.css.CSSRule ownerRule)

DOMCSSStyleSheet

public DOMCSSStyleSheet(CSSStyleSheetFactory factory,
                        Node ownerNode,
                        org.w3c.dom.stylesheets.MediaList media)
Method Detail

getOwnerNode

public Node getOwnerNode()
Specified by:
getOwnerNode in interface org.w3c.dom.stylesheets.StyleSheet
Overrides:
getOwnerNode in class BaseCSSStyleSheet

getComputedStyle

public org.w3c.dom.css.CSSStyleDeclaration getComputedStyle(Element elm,
                                                            String pseudoElt)
Gets the computed style for the given DOM Element and pseudo-element.

Parameters:
elm - the element.
pseudoElt - the pseudo-element.
Returns:
the computed style declaration.

clone

public DOMCSSStyleSheet clone()
Creates and returns a copy of this style sheet.

The copy is a shallow copy (the rule list is new, but the referenced rules are the same as in the cloned object.

Overrides:
clone in class Object
Returns:
a clone of this instance.


Copyright © 2011 informatica.info. All Rights Reserved.