org.apache.batik.css.dom
public class CSSOMStyleDeclaration extends java.lang.Object implements CSSStyleDeclaration
| Modifier and Type | Class and Description |
|---|---|
static interface |
CSSOMStyleDeclaration.ModificationHandler
To manage the modifications on a CSS value.
|
class |
CSSOMStyleDeclaration.StyleDeclarationValue
This class represents a CSS value returned by this declaration.
|
static interface |
CSSOMStyleDeclaration.ValueProvider
To provides the values.
|
| Modifier and Type | Field and Description |
|---|---|
protected CSSOMStyleDeclaration.ModificationHandler |
handler
The modifications handler.
|
protected CSSRule |
parentRule
The parent rule.
|
protected CSSOMStyleDeclaration.ValueProvider |
valueProvider
The associated value.
|
protected java.util.Map |
values
The values.
|
| Constructor and Description |
|---|
CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp,
CSSRule parent)
Creates a new style declaration.
|
| Modifier and Type | Method and Description |
|---|---|
protected CSSValue |
createCSSValue(java.lang.String name)
Creates the CSS value associated with the given property.
|
java.lang.String |
getCssText()
DOM: Implements
CSSStyleDeclaration.getCssText(). |
protected CSSValue |
getCSSValue(java.lang.String name)
Gets the CSS value associated with the given property.
|
int |
getLength()
DOM: Implements
CSSStyleDeclaration.getLength(). |
CSSRule |
getParentRule()
DOM: Implements
CSSStyleDeclaration.getParentRule(). |
CSSValue |
getPropertyCSSValue(java.lang.String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyCSSValue(String). |
java.lang.String |
getPropertyPriority(java.lang.String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyPriority(String). |
java.lang.String |
getPropertyValue(java.lang.String propertyName)
DOM: Implements
CSSStyleDeclaration.getPropertyValue(String). |
java.lang.String |
item(int index)
DOM: Implements
CSSStyleDeclaration.item(int). |
java.lang.String |
removeProperty(java.lang.String propertyName)
DOM: Implements
CSSStyleDeclaration.removeProperty(String). |
void |
setCssText(java.lang.String cssText)
DOM: Implements
CSSStyleDeclaration.setCssText(String). |
void |
setModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)
Sets the modification handler of this value.
|
void |
setProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.String prio)
DOM: Implements
CSSStyleDeclaration.setProperty(String,String,String). |
protected CSSOMStyleDeclaration.ValueProvider valueProvider
protected CSSOMStyleDeclaration.ModificationHandler handler
protected CSSRule parentRule
protected java.util.Map values
public CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp, CSSRule parent)
public void setModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)
public java.lang.String getCssText()
CSSStyleDeclaration.getCssText().getCssText in interface CSSStyleDeclarationpublic void setCssText(java.lang.String cssText)
throws DOMException
CSSStyleDeclaration.setCssText(String).setCssText in interface CSSStyleDeclarationDOMExceptionpublic java.lang.String getPropertyValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyValue(String).getPropertyValue in interface CSSStyleDeclarationpublic CSSValue getPropertyCSSValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyCSSValue(String).getPropertyCSSValue in interface CSSStyleDeclarationpublic java.lang.String removeProperty(java.lang.String propertyName)
throws DOMException
CSSStyleDeclaration.removeProperty(String).removeProperty in interface CSSStyleDeclarationDOMExceptionpublic java.lang.String getPropertyPriority(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyPriority(String).getPropertyPriority in interface CSSStyleDeclarationpublic void setProperty(java.lang.String propertyName,
java.lang.String value,
java.lang.String prio)
throws DOMException
CSSStyleDeclaration.setProperty(String,String,String).setProperty in interface CSSStyleDeclarationDOMExceptionpublic int getLength()
CSSStyleDeclaration.getLength().getLength in interface CSSStyleDeclarationpublic java.lang.String item(int index)
CSSStyleDeclaration.item(int).item in interface CSSStyleDeclarationpublic CSSRule getParentRule()
CSSStyleDeclaration.getParentRule().getParentRule in interface CSSStyleDeclarationprotected CSSValue getCSSValue(java.lang.String name)
protected CSSValue createCSSValue(java.lang.String name)
Copyright ? 2008 Apache Software Foundation. All Rights Reserved.