info.informatica.doc.style.css.dom
Class DOMCSSStyleSheet
java.lang.Object
info.informatica.doc.style.css.dom.BaseCSSStyleSheet
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)
| 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 |
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)
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.