public class CSSStyleDeclarationImpl extends Object implements org.w3c.dom.css.CSSStyleDeclaration, CSSFormatable, Serializable
CSSStyleDeclaration
.Constructor and Description |
---|
CSSStyleDeclarationImpl() |
CSSStyleDeclarationImpl(org.w3c.dom.css.CSSRule parentRule) |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(Property p) |
boolean |
equals(Object obj) |
String |
getCssText() |
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
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() |
public CSSStyleDeclarationImpl(org.w3c.dom.css.CSSRule parentRule)
public CSSStyleDeclarationImpl()
public void setParentRule(org.w3c.dom.css.CSSRule parentRule)
public String getCssText()
getCssText
in interface org.w3c.dom.css.CSSStyleDeclaration
public String getCssText(CSSFormat format)
getCssText
in interface CSSFormatable
format
- the formatting rulespublic void setCssText(String cssText) throws DOMException
setCssText
in interface org.w3c.dom.css.CSSStyleDeclaration
DOMException
public String getPropertyValue(String propertyName)
getPropertyValue
in interface org.w3c.dom.css.CSSStyleDeclaration
public org.w3c.dom.css.CSSValue getPropertyCSSValue(String propertyName)
getPropertyCSSValue
in interface org.w3c.dom.css.CSSStyleDeclaration
public String removeProperty(String propertyName) throws DOMException
removeProperty
in interface org.w3c.dom.css.CSSStyleDeclaration
DOMException
public String getPropertyPriority(String propertyName)
getPropertyPriority
in interface org.w3c.dom.css.CSSStyleDeclaration
public void setProperty(String propertyName, String value, String priority) throws DOMException
setProperty
in interface org.w3c.dom.css.CSSStyleDeclaration
DOMException
public int getLength()
getLength
in interface org.w3c.dom.css.CSSStyleDeclaration
public String item(int index)
item
in interface org.w3c.dom.css.CSSStyleDeclaration
public org.w3c.dom.css.CSSRule getParentRule()
getParentRule
in interface org.w3c.dom.css.CSSStyleDeclaration
public void addProperty(Property p)
Copyright © 1999–2017. All rights reserved.