org.apache.batik.css.dom

Class CSSOMStyleDeclaration

public class CSSOMStyleDeclaration extends Object implements CSSStyleDeclaration

This class represents a style declaration.
Nested Class Summary
interfaceCSSOMStyleDeclaration.ModificationHandler
To manage the modifications on a CSS value.
classCSSOMStyleDeclaration.StyleDeclarationValue
This class represents a CSS value returned by this declaration.
interfaceCSSOMStyleDeclaration.ValueProvider
To provides the values.
Field Summary
protected CSSOMStyleDeclaration.ModificationHandlerhandler
The modifications handler.
protected CSSRuleparentRule
The parent rule.
protected CSSOMStyleDeclaration.ValueProvidervalueProvider
The associated value.
protected Mapvalues
The values.
Constructor Summary
CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp, CSSRule parent)
Creates a new style declaration.
Method Summary
protected CSSValuecreateCSSValue(String name)
Creates the CSS value associated with the given property.
StringgetCssText()
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getCssText()}.
protected CSSValuegetCSSValue(String name)
Gets the CSS value associated with the given property.
intgetLength()
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getLength()}.
CSSRulegetParentRule()
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getParentRule()}.
CSSValuegetPropertyCSSValue(String propertyName)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getPropertyCSSValue(String)}.
StringgetPropertyPriority(String propertyName)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getPropertyPriority(String)}.
StringgetPropertyValue(String propertyName)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getPropertyValue(String)}.
Stringitem(int index)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#item(int)}.
StringremoveProperty(String propertyName)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#removeProperty(String)}.
voidsetCssText(String cssText)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#setCssText(String)}.
voidsetModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)
Sets the modification handler of this value.
voidsetProperty(String propertyName, String value, String prio)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#setProperty(String,String,String)}.

Field Detail

handler

protected CSSOMStyleDeclaration.ModificationHandler handler
The modifications handler.

parentRule

protected CSSRule parentRule
The parent rule.

valueProvider

protected CSSOMStyleDeclaration.ValueProvider valueProvider
The associated value.

values

protected Map values
The values.

Constructor Detail

CSSOMStyleDeclaration

public CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp, CSSRule parent)
Creates a new style declaration.

Method Detail

createCSSValue

protected CSSValue createCSSValue(String name)
Creates the CSS value associated with the given property.

getCssText

public String getCssText()
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getCssText()}.

getCSSValue

protected CSSValue getCSSValue(String name)
Gets the CSS value associated with the given property.

getLength

public int getLength()
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getLength()}.

getParentRule

public CSSRule getParentRule()
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getParentRule()}.

getPropertyCSSValue

public CSSValue getPropertyCSSValue(String propertyName)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getPropertyCSSValue(String)}.

getPropertyPriority

public String getPropertyPriority(String propertyName)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getPropertyPriority(String)}.

getPropertyValue

public String getPropertyValue(String propertyName)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#getPropertyValue(String)}.

item

public String item(int index)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#item(int)}.

removeProperty

public String removeProperty(String propertyName)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#removeProperty(String)}.

setCssText

public void setCssText(String cssText)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#setCssText(String)}.

setModificationHandler

public void setModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)
Sets the modification handler of this value.

setProperty

public void setProperty(String propertyName, String value, String prio)
DOM: Implements {@link org.w3c.dom.css.CSSStyleDeclaration#setProperty(String,String,String)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.