|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.css.dom.CSSOMStyleDeclaration
public class CSSOMStyleDeclaration
This class represents a style declaration.
Nested Class Summary | |
---|---|
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. |
Field Summary | |
---|---|
protected CSSOMStyleDeclaration.ModificationHandler |
handler
The modifications handler. |
protected org.w3c.dom.css.CSSRule |
parentRule
The parent rule. |
protected CSSOMStyleDeclaration.ValueProvider |
valueProvider
The associated value. |
protected java.util.Map |
values
The values. |
Constructor Summary | |
---|---|
CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp,
org.w3c.dom.css.CSSRule parent)
Creates a new style declaration. |
Method Summary | |
---|---|
protected org.w3c.dom.css.CSSValue |
createCSSValue(java.lang.String name)
Creates the CSS value associated with the given property. |
java.lang.String |
getCssText()
DOM: Implements CSSStyleDeclaration.getCssText() . |
protected org.w3c.dom.css.CSSValue |
getCSSValue(java.lang.String name)
Gets the CSS value associated with the given property. |
int |
getLength()
DOM: Implements CSSStyleDeclaration.getLength() . |
org.w3c.dom.css.CSSRule |
getParentRule()
DOM: Implements CSSStyleDeclaration.getParentRule() . |
org.w3c.dom.css.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) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CSSOMStyleDeclaration.ValueProvider valueProvider
protected CSSOMStyleDeclaration.ModificationHandler handler
protected org.w3c.dom.css.CSSRule parentRule
protected java.util.Map values
Constructor Detail |
---|
public CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp, org.w3c.dom.css.CSSRule parent)
Method Detail |
---|
public void setModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)
public java.lang.String getCssText()
CSSStyleDeclaration.getCssText()
.
getCssText
in interface org.w3c.dom.css.CSSStyleDeclaration
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException
CSSStyleDeclaration.setCssText(String)
.
setCssText
in interface org.w3c.dom.css.CSSStyleDeclaration
org.w3c.dom.DOMException
public java.lang.String getPropertyValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyValue(String)
.
getPropertyValue
in interface org.w3c.dom.css.CSSStyleDeclaration
public org.w3c.dom.css.CSSValue getPropertyCSSValue(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyCSSValue(String)
.
getPropertyCSSValue
in interface org.w3c.dom.css.CSSStyleDeclaration
public java.lang.String removeProperty(java.lang.String propertyName) throws org.w3c.dom.DOMException
CSSStyleDeclaration.removeProperty(String)
.
removeProperty
in interface org.w3c.dom.css.CSSStyleDeclaration
org.w3c.dom.DOMException
public java.lang.String getPropertyPriority(java.lang.String propertyName)
CSSStyleDeclaration.getPropertyPriority(String)
.
getPropertyPriority
in interface org.w3c.dom.css.CSSStyleDeclaration
public void setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String prio) throws org.w3c.dom.DOMException
CSSStyleDeclaration.setProperty(String,String,String)
.
setProperty
in interface org.w3c.dom.css.CSSStyleDeclaration
org.w3c.dom.DOMException
public int getLength()
CSSStyleDeclaration.getLength()
.
getLength
in interface org.w3c.dom.css.CSSStyleDeclaration
public java.lang.String item(int index)
CSSStyleDeclaration.item(int)
.
item
in interface org.w3c.dom.css.CSSStyleDeclaration
public org.w3c.dom.css.CSSRule getParentRule()
CSSStyleDeclaration.getParentRule()
.
getParentRule
in interface org.w3c.dom.css.CSSStyleDeclaration
protected org.w3c.dom.css.CSSValue getCSSValue(java.lang.String name)
protected org.w3c.dom.css.CSSValue createCSSValue(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |