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

java.lang.Object
  extended by info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration
      extended by info.informatica.doc.style.css.dom.ComputedCSSStyle
          extended by info.informatica.doc.style.css.dom.DOMCSSStyleDeclaration
All Implemented Interfaces:
CSS2ComputedProperties, StyleDatabaseAware, Cloneable, org.w3c.dom.css.CSSStyleDeclaration

public class DOMCSSStyleDeclaration
extends ComputedCSSStyle

Style declaration for DOM.

Author:
Carlos Amengual (amengual at informatica.info)

Nested Class Summary
 
Nested classes/interfaces inherited from class info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration
BaseCSSStyleDeclaration.StyleDeclarationDocumentHandler
 
Constructor Summary
DOMCSSStyleDeclaration()
           
DOMCSSStyleDeclaration(BaseCSSStyleDeclaration copiedObject)
           
DOMCSSStyleDeclaration(DOMCSSStyleSheet parentSheet)
           
 
Method Summary
 DOMCSSStyleDeclaration clone()
           
 DOMCSSStyleDeclaration getParentComputedStyle()
          Gets the computed style for the parent element.
 String getParentXPath()
           
 String getPeerXPath()
          Gets the XPath of the node to which this style applies.
 String getText()
          Gets the (whitespace-trimmed) text content of the node associated to this style.
 
Methods inherited from class info.informatica.doc.style.css.dom.ComputedCSSStyle
computeFloatValue, getBackgroundColor, getBackgroundImage, getBaseURL, getColor, getCSSValue, getFontFamily, getFontSize, getFontWeight, getLargerFontSize, getParentElementFontSize, getPeerNode, getSmallerFontSize, setPeerNode
 
Methods inherited from class info.informatica.doc.style.css.dom.BaseCSSStyleDeclaration
addStyle, defaultPropertyValue, getCSS2Properties, getCssText, getDeclaredCSSValue, getLength, getParentRule, getPropertyCSSValue, getPropertyPriority, getPropertyValue, getStyleDatabase, item, prioritySplit, removeProperty, setCssText, setProperty, setProperty, setStyleDatabase, setSubproperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.informatica.doc.style.css.CSS2ComputedProperties
getPropertyCSSValue, getPropertyValue, getStyleDatabase
 
Methods inherited from interface info.informatica.doc.style.css.StyleDatabaseAware
getStyleDatabase, setStyleDatabase
 

Constructor Detail

DOMCSSStyleDeclaration

public DOMCSSStyleDeclaration()

DOMCSSStyleDeclaration

public DOMCSSStyleDeclaration(DOMCSSStyleSheet parentSheet)

DOMCSSStyleDeclaration

public DOMCSSStyleDeclaration(BaseCSSStyleDeclaration copiedObject)
Method Detail

getPeerXPath

public String getPeerXPath()
Description copied from interface: CSS2ComputedProperties
Gets the XPath of the node to which this style applies.

Specified by:
getPeerXPath in interface CSS2ComputedProperties
Specified by:
getPeerXPath in class ComputedCSSStyle
Returns:
the XPath of the node.

getParentXPath

public String getParentXPath()
Specified by:
getParentXPath in class ComputedCSSStyle

getParentComputedStyle

public DOMCSSStyleDeclaration getParentComputedStyle()
Description copied from class: ComputedCSSStyle
Gets the computed style for the parent element.

Specified by:
getParentComputedStyle in interface CSS2ComputedProperties
Specified by:
getParentComputedStyle in class ComputedCSSStyle
Returns:
the computed style for the parent element, or null if there is no parent element, or has no style associated.

getText

public String getText()
Gets the (whitespace-trimmed) text content of the node associated to this style.

Specified by:
getText in class ComputedCSSStyle
Returns:
the text content, or the empty string if the box has no text.

clone

public DOMCSSStyleDeclaration clone()
Specified by:
clone in class ComputedCSSStyle


Copyright © 2011 informatica.info. All Rights Reserved.