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() |
AbstractCSSRuleImpl |
getParentRule() |
List<Property> |
getProperties() |
CSSValueImpl |
getPropertyCSSValue(String propertyName) |
Property |
getPropertyDeclaration(String propertyName) |
String |
getPropertyPriority(String propertyName) |
String |
getPropertyValue(String propertyName) |
int |
hashCode() |
String |
removeProperty(String propertyName)
Remove a property.
|
void |
setCssText(String cssText)
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 String getPropertyValue(String propertyName)
propertyName - the property namepublic CSSValueImpl getPropertyCSSValue(String propertyName)
propertyName - the property namepublic String removeProperty(String propertyName) throws DOMException
propertyName - the property nameDOMException - in case of errorpublic String getPropertyPriority(String propertyName)
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()
public AbstractCSSRuleImpl getParentRule()
public void addProperty(Property p)
p - the property to addpublic Property getPropertyDeclaration(String propertyName)
propertyName - the name of the properyCopyright © 2021. All rights reserved.