Package com.steadystate.css.dom
Class CSSStyleDeclarationImpl
- java.lang.Object
-
- com.steadystate.css.dom.CSSStyleDeclarationImpl
-
- All Implemented Interfaces:
java.io.Serializable
,org.w3c.dom.css.CSSStyleDeclaration
public class CSSStyleDeclarationImpl extends java.lang.Object implements org.w3c.dom.css.CSSStyleDeclaration, java.io.Serializable
Implementation ofCSSStyleDeclaration
.- Version:
- $Id: CSSStyleDeclarationImpl.java,v 1.4 2008/03/26 02:08:55 sdanig Exp $
- Author:
- David Schweinsberg
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CSSStyleDeclarationImpl()
CSSStyleDeclarationImpl(org.w3c.dom.css.CSSRule parentRule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(Property p)
java.lang.String
getCssText()
int
getLength()
org.w3c.dom.css.CSSRule
getParentRule()
java.util.List<Property>
getProperties()
org.w3c.dom.css.CSSValue
getPropertyCSSValue(java.lang.String propertyName)
Property
getPropertyDeclaration(java.lang.String name)
java.lang.String
getPropertyPriority(java.lang.String propertyName)
java.lang.String
getPropertyValue(java.lang.String propertyName)
java.lang.String
item(int index)
java.lang.String
removeProperty(java.lang.String propertyName)
void
setCssText(java.lang.String cssText)
void
setParentRule(org.w3c.dom.css.CSSRule parentRule)
void
setProperties(java.util.List<Property> properties)
void
setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String priority)
java.lang.String
toString()
-
-
-
Method Detail
-
setParentRule
public void setParentRule(org.w3c.dom.css.CSSRule parentRule)
-
getProperties
public java.util.List<Property> getProperties()
-
setProperties
public void setProperties(java.util.List<Property> properties)
-
getCssText
public java.lang.String getCssText()
- Specified by:
getCssText
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setCssText
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException
- Specified by:
setCssText
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
org.w3c.dom.DOMException
-
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String propertyName)
- Specified by:
getPropertyValue
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getPropertyCSSValue
public org.w3c.dom.css.CSSValue getPropertyCSSValue(java.lang.String propertyName)
- Specified by:
getPropertyCSSValue
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
removeProperty
public java.lang.String removeProperty(java.lang.String propertyName) throws org.w3c.dom.DOMException
- Specified by:
removeProperty
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
org.w3c.dom.DOMException
-
getPropertyPriority
public java.lang.String getPropertyPriority(java.lang.String propertyName)
- Specified by:
getPropertyPriority
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
setProperty
public void setProperty(java.lang.String propertyName, java.lang.String value, java.lang.String priority) throws org.w3c.dom.DOMException
- Specified by:
setProperty
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Throws:
org.w3c.dom.DOMException
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
item
public java.lang.String item(int index)
- Specified by:
item
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
getParentRule
public org.w3c.dom.css.CSSRule getParentRule()
- Specified by:
getParentRule
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
-
addProperty
public void addProperty(Property p)
-
getPropertyDeclaration
public Property getPropertyDeclaration(java.lang.String name)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-