Package org.apache.batik.css.dom
Class CSSOMStyleDeclaration
java.lang.Object
org.apache.batik.css.dom.CSSOMStyleDeclaration
- All Implemented Interfaces:
CSSStyleDeclaration
- Direct Known Subclasses:
CSSOMSVGStyleDeclaration
This class represents a style declaration.
- Version:
- $Id: CSSOMStyleDeclaration.java 1733416 2016-03-03 07:07:13Z gadams $
-
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 CSSRule
The parent rule.protected CSSOMStyleDeclaration.ValueProvider
The associated value.protected Map
The values. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new style declaration. -
Method Summary
Modifier and TypeMethodDescriptionprotected CSSValue
createCSSValue
(String name) Creates the CSS value associated with the given property.DOM: ImplementsCSSStyleDeclaration.getCssText()
.protected CSSValue
getCSSValue
(String name) Gets the CSS value associated with the given property.int
DOM: ImplementsCSSStyleDeclaration.getLength()
.DOM: ImplementsCSSStyleDeclaration.getParentRule()
.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
The parent rule. -
values
The values.
-
-
Constructor Details
-
CSSOMStyleDeclaration
Creates a new style declaration.
-
-
Method Details
-
setModificationHandler
Sets the modification handler of this value. -
getCssText
DOM: ImplementsCSSStyleDeclaration.getCssText()
.- Specified by:
getCssText
in interfaceCSSStyleDeclaration
-
setCssText
DOM: ImplementsCSSStyleDeclaration.setCssText(String)
.- Specified by:
setCssText
in interfaceCSSStyleDeclaration
- Throws:
DOMException
-
getPropertyValue
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String)
.- Specified by:
getPropertyValue
in interfaceCSSStyleDeclaration
-
getPropertyCSSValue
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String)
.- Specified by:
getPropertyCSSValue
in interfaceCSSStyleDeclaration
-
removeProperty
DOM: ImplementsCSSStyleDeclaration.removeProperty(String)
.- Specified by:
removeProperty
in interfaceCSSStyleDeclaration
- Throws:
DOMException
-
getPropertyPriority
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String)
.- Specified by:
getPropertyPriority
in interfaceCSSStyleDeclaration
-
setProperty
DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String)
.- Specified by:
setProperty
in interfaceCSSStyleDeclaration
- Throws:
DOMException
-
getLength
public int getLength()DOM: ImplementsCSSStyleDeclaration.getLength()
.- Specified by:
getLength
in interfaceCSSStyleDeclaration
-
item
DOM: ImplementsCSSStyleDeclaration.item(int)
.- Specified by:
item
in interfaceCSSStyleDeclaration
-
getParentRule
DOM: ImplementsCSSStyleDeclaration.getParentRule()
.- Specified by:
getParentRule
in interfaceCSSStyleDeclaration
-
getCSSValue
Gets the CSS value associated with the given property. -
createCSSValue
Creates the CSS value associated with the given property.
-