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
public class CSSOMStyleDeclaration extends java.lang.Object implements org.w3c.dom.css.CSSStyleDeclarationThis class represents a style declaration.- Version:
- $Id: CSSOMStyleDeclaration.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCSSOMStyleDeclaration.ModificationHandlerTo manage the modifications on a CSS value.classCSSOMStyleDeclaration.StyleDeclarationValueThis class represents a CSS value returned by this declaration.static interfaceCSSOMStyleDeclaration.ValueProviderTo provides the values.
-
Field Summary
Fields Modifier and Type Field Description protected CSSOMStyleDeclaration.ModificationHandlerhandlerThe modifications handler.protected org.w3c.dom.css.CSSRuleparentRuleThe parent rule.protected CSSOMStyleDeclaration.ValueProvidervalueProviderThe associated value.protected java.util.MapvaluesThe values.
-
Constructor Summary
Constructors Constructor Description CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp, org.w3c.dom.css.CSSRule parent)Creates a new style declaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.w3c.dom.css.CSSValuecreateCSSValue(java.lang.String name)Creates the CSS value associated with the given property.java.lang.StringgetCssText()DOM: ImplementsCSSStyleDeclaration.getCssText().protected org.w3c.dom.css.CSSValuegetCSSValue(java.lang.String name)Gets the CSS value associated with the given property.intgetLength()DOM: ImplementsCSSStyleDeclaration.getLength().org.w3c.dom.css.CSSRulegetParentRule()DOM: ImplementsCSSStyleDeclaration.getParentRule().org.w3c.dom.css.CSSValuegetPropertyCSSValue(java.lang.String propertyName)DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String).java.lang.StringgetPropertyPriority(java.lang.String propertyName)DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String).java.lang.StringgetPropertyValue(java.lang.String propertyName)DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String).java.lang.Stringitem(int index)DOM: ImplementsCSSStyleDeclaration.item(int).java.lang.StringremoveProperty(java.lang.String propertyName)DOM: ImplementsCSSStyleDeclaration.removeProperty(String).voidsetCssText(java.lang.String cssText)DOM: ImplementsCSSStyleDeclaration.setCssText(String).voidsetModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)Sets the modification handler of this value.voidsetProperty(java.lang.String propertyName, java.lang.String value, java.lang.String prio)DOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String).
-
-
-
Field Detail
-
valueProvider
protected CSSOMStyleDeclaration.ValueProvider valueProvider
The associated value.
-
handler
protected CSSOMStyleDeclaration.ModificationHandler handler
The modifications handler.
-
parentRule
protected org.w3c.dom.css.CSSRule parentRule
The parent rule.
-
values
protected java.util.Map values
The values.
-
-
Constructor Detail
-
CSSOMStyleDeclaration
public CSSOMStyleDeclaration(CSSOMStyleDeclaration.ValueProvider vp, org.w3c.dom.css.CSSRule parent)
Creates a new style declaration.
-
-
Method Detail
-
setModificationHandler
public void setModificationHandler(CSSOMStyleDeclaration.ModificationHandler h)
Sets the modification handler of this value.
-
getCssText
public java.lang.String getCssText()
DOM: ImplementsCSSStyleDeclaration.getCssText().- Specified by:
getCssTextin interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setCssText
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMExceptionDOM: ImplementsCSSStyleDeclaration.setCssText(String).- Specified by:
setCssTextin interfaceorg.w3c.dom.css.CSSStyleDeclaration- Throws:
org.w3c.dom.DOMException
-
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyValue(String).- Specified by:
getPropertyValuein interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getPropertyCSSValue
public org.w3c.dom.css.CSSValue getPropertyCSSValue(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyCSSValue(String).- Specified by:
getPropertyCSSValuein interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
removeProperty
public java.lang.String removeProperty(java.lang.String propertyName) throws org.w3c.dom.DOMExceptionDOM: ImplementsCSSStyleDeclaration.removeProperty(String).- Specified by:
removePropertyin interfaceorg.w3c.dom.css.CSSStyleDeclaration- Throws:
org.w3c.dom.DOMException
-
getPropertyPriority
public java.lang.String getPropertyPriority(java.lang.String propertyName)
DOM: ImplementsCSSStyleDeclaration.getPropertyPriority(String).- Specified by:
getPropertyPriorityin interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setProperty
public void setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String prio) throws org.w3c.dom.DOMExceptionDOM: ImplementsCSSStyleDeclaration.setProperty(String,String,String).- Specified by:
setPropertyin interfaceorg.w3c.dom.css.CSSStyleDeclaration- Throws:
org.w3c.dom.DOMException
-
getLength
public int getLength()
DOM: ImplementsCSSStyleDeclaration.getLength().- Specified by:
getLengthin interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
item
public java.lang.String item(int index)
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
protected org.w3c.dom.css.CSSValue getCSSValue(java.lang.String name)
Gets the CSS value associated with the given property.
-
createCSSValue
protected org.w3c.dom.css.CSSValue createCSSValue(java.lang.String name)
Creates the CSS value associated with the given property.
-
-