public class CSSStyleDeclarationImpl extends Object implements Serializable
| Constructor and Description |
|---|
CSSStyleDeclarationImpl(AbstractCSSRuleImpl parentRule)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(Property p)
Add a property.
|
boolean |
equals(Object obj) |
String |
getCssText() |
int |
getLength()
getLength.
|
AbstractCSSRuleImpl |
getParentRule()
getParentRule.
|
List<Property> |
getProperties()
getProperties.
|
CSSValueImpl |
getPropertyCSSValue(String propertyName)
getPropertyCSSValue.
|
Property |
getPropertyDeclaration(String propertyName)
getPropertyDeclaration.
|
String |
getPropertyPriority(String propertyName)
getPropertyPriority.
|
String |
getPropertyValue(String propertyName) |
int |
hashCode() |
String |
removeProperty(String propertyName)
Remove a property.
|
void |
setCssText(String cssText)
Sets the css text.
|
void |
setCssText(String cssText,
CSSErrorHandler cssErrorHandler)
Sets the css text.
|
void |
setProperty(String propertyName,
String value,
String priority)
Set a property.
|
String |
toString() |
public CSSStyleDeclarationImpl(AbstractCSSRuleImpl parentRule)
parentRule - the parent rolepublic String getCssText()
public void setCssText(String cssText) throws DOMException
cssText - the new css textDOMException - in case of errorpublic void setCssText(String cssText, CSSErrorHandler cssErrorHandler) throws DOMException
cssText - the new css textcssErrorHandler - the CSSErrorHandler to be usedDOMException - in case of errorpublic String getPropertyValue(String propertyName)
propertyName - the property namepublic CSSValueImpl getPropertyCSSValue(String propertyName)
getPropertyCSSValue.
propertyName - the property namepublic String removeProperty(String propertyName) throws DOMException
propertyName - the property nameDOMException - in case of errorpublic String getPropertyPriority(String propertyName)
getPropertyPriority.
propertyName - the name of the propertypublic void setProperty(String propertyName, String value, String priority) throws DOMException
propertyName - the name of the propertyvalue - the new valuepriority - the priorityDOMException - in case of errorpublic int getLength()
getLength.
public AbstractCSSRuleImpl getParentRule()
getParentRule.
public void addProperty(Property p)
p - the property to addpublic Property getPropertyDeclaration(String propertyName)
getPropertyDeclaration.
propertyName - the name of the properyCopyright © 2024 HtmlUnit. All rights reserved.