java.lang.Object
org.htmlunit.cssparser.dom.CSSStyleDeclarationImpl
- All Implemented Interfaces:
Serializable
Implementation of CSSStyleDeclaration.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a property.booleanReturns the current CSS text.intReturns the properties count.Returns the parent rule.Returns the properties.getPropertyCSSValue(String propertyName) Returns the property CSS value.getPropertyDeclaration(String propertyName) Returns the property declaration for the given property name.getPropertyPriority(String propertyName) Returns the property priority.getPropertyValue(String propertyName) Returns the property value.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()
-
Constructor Details
-
CSSStyleDeclarationImpl
Ctor.- Parameters:
parentRule- the parent rule
-
-
Method Details
-
getProperties
Returns the properties.- Returns:
- the properties
-
getCssText
Returns the current CSS text.- 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
Returns the property value.- Parameters:
propertyName- the property name- Returns:
- the property value
-
getPropertyCSSValue
Returns the property CSS value.- 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
Returns the property priority.- Parameters:
propertyName- the name of the property- Returns:
- the priority
-
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.- Returns:
- the properties count
-
getParentRule
Returns the parent rule.- Returns:
- the parent rule
-
addProperty
Add a property.- Parameters:
p- the property to add
-
getPropertyDeclaration
Returns the property declaration for the given property name.- Parameters:
propertyName- the name of the property- Returns:
- the property
-
toString
-
equals
-
hashCode
public int hashCode()
-