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 interfaceTo manage the modifications on a CSS value.classThis class represents a CSS value returned by this declaration.static interfaceTo provides the values. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe modifications handler.protected org.w3c.dom.css.CSSRuleThe parent rule.protected CSSOMStyleDeclaration.ValueProviderThe associated value.protected MapThe 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.CSSValuecreateCSSValue(String name) Creates the CSS value associated with the given property.DOM: ImplementsCSSStyleDeclaration.getCssText().protected org.w3c.dom.css.CSSValuegetCSSValue(String name) Gets the CSS value associated with the given property.intDOM: ImplementsCSSStyleDeclaration.getLength().org.w3c.dom.css.CSSRuleDOM: ImplementsCSSStyleDeclaration.getParentRule().org.w3c.dom.css.CSSValuegetPropertyCSSValue(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).voidsetCssText(String cssText) DOM: ImplementsCSSStyleDeclaration.setCssText(String).voidSets the modification handler of this value.voidsetProperty(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:
getCssTextin interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setCssText
DOM: ImplementsCSSStyleDeclaration.setCssText(String).- Specified by:
setCssTextin interfaceorg.w3c.dom.css.CSSStyleDeclaration- Throws:
DOMException
-
getPropertyValue
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String).- Specified by:
getPropertyValuein interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getPropertyCSSValue
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String).- Specified by:
getPropertyCSSValuein interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
removeProperty
DOM: ImplementsCSSStyleDeclaration.removeProperty(String).- Specified by:
removePropertyin interfaceorg.w3c.dom.css.CSSStyleDeclaration- Throws:
DOMException
-
getPropertyPriority
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String).- Specified by:
getPropertyPriorityin interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setProperty
DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String).- Specified by:
setPropertyin interfaceorg.w3c.dom.css.CSSStyleDeclaration- Throws:
DOMException
-
getLength
public int getLength()DOM: ImplementsCSSStyleDeclaration.getLength().- Specified by:
getLengthin interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
item
DOM: ImplementsCSSStyleDeclaration.item(int).- Specified by:
itemin interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getParentRule
public org.w3c.dom.css.CSSRule getParentRule()DOM: ImplementsCSSStyleDeclaration.getParentRule().- Specified by:
getParentRulein 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.
-