info.informatica.doc.dom4j
Class DOM4JCSSStyleDeclaration

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.dom4j.DOM4JCSSStyleDeclaration
All Implemented Interfaces:
CSS2ComputedProperties, StyleDatabaseAware, Cloneable, org.w3c.dom.css.CSSStyleDeclaration

public class DOM4JCSSStyleDeclaration
extends ComputedCSSStyle

Style declaration for DOM4J.

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
DOM4JCSSStyleDeclaration()
           
DOM4JCSSStyleDeclaration(BaseCSSStyleDeclaration copiedObject)
           
 
Method Summary
 DOM4JCSSStyleDeclaration clone()
           
 DOM4JCSSStyleDeclaration 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

DOM4JCSSStyleDeclaration

public DOM4JCSSStyleDeclaration()

DOM4JCSSStyleDeclaration

public DOM4JCSSStyleDeclaration(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 DOM4JCSSStyleDeclaration 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 DOM4JCSSStyleDeclaration clone()
Specified by:
clone in class ComputedCSSStyle


Copyright © 2011 informatica.info. All Rights Reserved.