com.steadystate.css.dom
Class CSSStyleDeclarationImpl

java.lang.Object
  extended by com.steadystate.css.dom.CSSStyleDeclarationImpl
All Implemented Interfaces:
Serializable, org.w3c.dom.css.CSSStyleDeclaration

public class CSSStyleDeclarationImpl
extends Object
implements org.w3c.dom.css.CSSStyleDeclaration, Serializable

Implementation of CSSStyleDeclaration.

Author:
David Schweinsberg, rbri
See Also:
Serialized Form

Constructor Summary
CSSStyleDeclarationImpl()
           
CSSStyleDeclarationImpl(org.w3c.dom.css.CSSRule parentRule)
           
 
Method Summary
 void addProperty(Property p)
           
 boolean equals(Object obj)
           
 String getCssText()
           
 int getLength()
           
 org.w3c.dom.css.CSSRule getParentRule()
           
 List<Property> getProperties()
           
 org.w3c.dom.css.CSSValue getPropertyCSSValue(String propertyName)
           
 Property getPropertyDeclaration(String propertyName)
           
 String getPropertyPriority(String propertyName)
           
 String getPropertyValue(String propertyName)
           
 int hashCode()
           
 String item(int index)
           
 String removeProperty(String propertyName)
           
 void setCssText(String cssText)
           
 void setParentRule(org.w3c.dom.css.CSSRule parentRule)
           
 void setProperties(List<Property> properties)
           
 void setProperty(String propertyName, String value, String priority)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSStyleDeclarationImpl

public CSSStyleDeclarationImpl(org.w3c.dom.css.CSSRule parentRule)

CSSStyleDeclarationImpl

public CSSStyleDeclarationImpl()
Method Detail

setParentRule

public void setParentRule(org.w3c.dom.css.CSSRule parentRule)

getProperties

public List<Property> getProperties()

setProperties

public void setProperties(List<Property> properties)

getCssText

public String getCssText()
Specified by:
getCssText in interface org.w3c.dom.css.CSSStyleDeclaration

setCssText

public void setCssText(String cssText)
                throws DOMException
Specified by:
setCssText in interface org.w3c.dom.css.CSSStyleDeclaration
Throws:
DOMException

getPropertyValue

public String getPropertyValue(String propertyName)
Specified by:
getPropertyValue in interface org.w3c.dom.css.CSSStyleDeclaration

getPropertyCSSValue

public org.w3c.dom.css.CSSValue getPropertyCSSValue(String propertyName)
Specified by:
getPropertyCSSValue in interface org.w3c.dom.css.CSSStyleDeclaration

removeProperty

public String removeProperty(String propertyName)
                      throws DOMException
Specified by:
removeProperty in interface org.w3c.dom.css.CSSStyleDeclaration
Throws:
DOMException

getPropertyPriority

public String getPropertyPriority(String propertyName)
Specified by:
getPropertyPriority in interface org.w3c.dom.css.CSSStyleDeclaration

setProperty

public void setProperty(String propertyName,
                        String value,
                        String priority)
                 throws DOMException
Specified by:
setProperty in interface org.w3c.dom.css.CSSStyleDeclaration
Throws:
DOMException

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.css.CSSStyleDeclaration

item

public String item(int index)
Specified by:
item in interface org.w3c.dom.css.CSSStyleDeclaration

getParentRule

public org.w3c.dom.css.CSSRule getParentRule()
Specified by:
getParentRule in interface org.w3c.dom.css.CSSStyleDeclaration

addProperty

public void addProperty(Property p)

getPropertyDeclaration

public Property getPropertyDeclaration(String propertyName)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All rights reserved.