Class CSSStyleDeclarationImpl
java.lang.Object
org.htmlunit.cssparser.dom.CSSStyleDeclarationImpl
- All Implemented Interfaces:
Serializable
Implementation of CSSStyleDeclaration.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a property.booleanprivate booleanintgetPropertyCSSValue(String propertyName) getPropertyDeclaration(String propertyName) getPropertyPriority(String propertyName) getPropertyValue(String propertyName) inthashCode()removeProperty(String propertyName) Remove a property.voidsetCssText(String cssText) Sets the css text.voidsetCssText(String cssText, CSSErrorHandler cssErrorHandler) Sets the css text.voidsetProperty(String propertyName, String value, String priority) Set a property.toString()
-
Field Details
-
PRIORITY_IMPORTANT
- See Also:
-
parentRule_
-
properties_
-
-
Constructor Details
-
CSSStyleDeclarationImpl
Ctor.- Parameters:
parentRule- the parent role
-
-
Method Details
-
getProperties
-
getCssText
- Returns:
- the current css text
-
setCssText
Sets the css text.- Parameters:
cssText- the new css text- Throws:
DOMException- in case of error
-
setCssText
Sets the css text.- Parameters:
cssText- the new css textcssErrorHandler- the CSSErrorHandler to be used- Throws:
DOMException- in case of error
-
getPropertyValue
-
getPropertyCSSValue
- Parameters:
propertyName- the property name- Returns:
- the property value
-
removeProperty
Remove a property.- Parameters:
propertyName- the property name- Returns:
- the removed property
- Throws:
DOMException- in case of error
-
getPropertyPriority
-
setProperty
Set a property.- Parameters:
propertyName- the name of the propertyvalue- the new valuepriority- the priority- Throws:
DOMException- in case of error
-
getLength
public int getLength()- Returns:
- the properties count
-
getParentRule
- Returns:
- the parent rule
-
addProperty
-
getPropertyDeclaration
-
toString
-
equals
-
equalsProperties
-
hashCode
-