public class CSSRuleListImpl extends Object implements org.w3c.dom.css.CSSRuleList, CSSFormatable, Serializable
CSSRuleList
.Constructor and Description |
---|
CSSRuleListImpl() |
Modifier and Type | Method and Description |
---|---|
void |
add(org.w3c.dom.css.CSSRule rule) |
void |
delete(int index) |
boolean |
equals(Object obj) |
String |
getCssText()
Same as
getCssText(CSSFormat) but using the default format. |
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
int |
getLength() |
List<org.w3c.dom.css.CSSRule> |
getRules() |
int |
hashCode() |
void |
insert(org.w3c.dom.css.CSSRule rule,
int index) |
org.w3c.dom.css.CSSRule |
item(int index) |
void |
setRules(List<org.w3c.dom.css.CSSRule> rules) |
String |
toString() |
public List<org.w3c.dom.css.CSSRule> getRules()
public void setRules(List<org.w3c.dom.css.CSSRule> rules)
public int getLength()
getLength
in interface org.w3c.dom.css.CSSRuleList
public org.w3c.dom.css.CSSRule item(int index)
item
in interface org.w3c.dom.css.CSSRuleList
public void add(org.w3c.dom.css.CSSRule rule)
public void insert(org.w3c.dom.css.CSSRule rule, int index)
public void delete(int index)
public String getCssText()
getCssText(CSSFormat)
but using the default format.public String getCssText(CSSFormat format)
getCssText
in interface CSSFormatable
format
- the formatting rulesCopyright © 1999–2022. All rights reserved.