Package org.apache.batik.css.dom
Class CSSOMStyleDeclaration
java.lang.Object
org.apache.batik.css.dom.CSSOMStyleDeclaration
- All Implemented Interfaces:
org.w3c.dom.css.CSSStyleDeclaration
- Direct Known Subclasses:
CSSOMSVGStyleDeclaration
This class represents a style declaration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
To manage the modifications on a CSS value.class
This class represents a CSS value returned by this declaration.static interface
To provides the values. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe modifications handler.protected org.w3c.dom.css.CSSRule
The parent rule.protected CSSOMStyleDeclaration.ValueProvider
The associated value.protected Map
The values. -
Constructor Summary
ConstructorsConstructorDescriptionCSSOMStyleDeclaration
(CSSOMStyleDeclaration.ValueProvider vp, org.w3c.dom.css.CSSRule parent) Creates a new style declaration. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.w3c.dom.css.CSSValue
createCSSValue
(String name) Creates the CSS value associated with the given property.DOM: ImplementsCSSStyleDeclaration.getCssText()
.protected org.w3c.dom.css.CSSValue
getCSSValue
(String name) Gets the CSS value associated with the given property.int
DOM: ImplementsCSSStyleDeclaration.getLength()
.org.w3c.dom.css.CSSRule
DOM: ImplementsCSSStyleDeclaration.getParentRule()
.org.w3c.dom.css.CSSValue
getPropertyCSSValue
(String propertyName) DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String)
.getPropertyPriority
(String propertyName) DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String)
.getPropertyValue
(String propertyName) DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String)
.item
(int index) DOM: ImplementsCSSStyleDeclaration.item(int)
.removeProperty
(String propertyName) DOM: ImplementsCSSStyleDeclaration.removeProperty(String)
.void
setCssText
(String cssText) DOM: ImplementsCSSStyleDeclaration.setCssText(String)
.void
Sets the modification handler of this value.void
setProperty
(String propertyName, String value, String prio) DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String)
.
-
Field Details
-
valueProvider
The associated value. -
handler
The modifications handler. -
parentRule
protected org.w3c.dom.css.CSSRule parentRuleThe parent rule. -
values
The values.
-
-
Constructor Details
-
CSSOMStyleDeclaration
public CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp, org.w3c.dom.css.CSSRule parent) Creates a new style declaration.
-
-
Method Details
-
setModificationHandler
Sets the modification handler of this value. -
getCssText
DOM: ImplementsCSSStyleDeclaration.getCssText()
.- Specified by:
getCssText
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setCssText
DOM: ImplementsCSSStyleDeclaration.setCssText(String)
.- Specified by:
setCssText
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
DOMException
-
getPropertyValue
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String)
.- Specified by:
getPropertyValue
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getPropertyCSSValue
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String)
.- Specified by:
getPropertyCSSValue
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
removeProperty
DOM: ImplementsCSSStyleDeclaration.removeProperty(String)
.- Specified by:
removeProperty
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
DOMException
-
getPropertyPriority
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String)
.- Specified by:
getPropertyPriority
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setProperty
DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String)
.- Specified by:
setProperty
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
DOMException
-
getLength
public int getLength()DOM: ImplementsCSSStyleDeclaration.getLength()
.- Specified by:
getLength
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
item
DOM: ImplementsCSSStyleDeclaration.item(int)
.- Specified by:
item
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getParentRule
public org.w3c.dom.css.CSSRule getParentRule()DOM: ImplementsCSSStyleDeclaration.getParentRule()
.- Specified by:
getParentRule
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getCSSValue
Gets the CSS value associated with the given property. -
createCSSValue
Creates the CSS value associated with the given property.
-