public class CSSMediaRuleImpl extends AbstractCSSRuleImpl
| Constructor and Description |
|---|
CSSMediaRuleImpl(CSSStyleSheetImpl parentStyleSheet,
AbstractCSSRuleImpl parentRule,
MediaListImpl media)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRule(int index)
Removes a rule at the given index.
|
boolean |
equals(Object obj) |
CSSRuleListImpl |
getCssRules() |
String |
getCssText() |
MediaListImpl |
getMediaList() |
int |
hashCode() |
void |
insertRule(String rule,
int index)
Insert a new rule at the given index.
|
void |
setCssText(String cssText)
Sets the css text.
|
void |
setRuleList(CSSRuleListImpl rules)
Replaces the rule list.
|
String |
toString() |
getParentRule, getParentStyleSheet, setParentRule, setParentStyleSheetgetLocator, setLocatorpublic CSSMediaRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, MediaListImpl media)
parentStyleSheet - the parent style sheetparentRule - the parent rulemedia - the mediapublic String getCssText()
getCssText in class AbstractCSSRuleImplpublic void setCssText(String cssText) throws DOMException
setCssText in class AbstractCSSRuleImplcssText - the new css textDOMExceptionpublic MediaListImpl getMediaList()
public CSSRuleListImpl getCssRules()
public void insertRule(String rule, int index) throws DOMException
rule - the rule to be insertedindex - the insert posDOMException - in case of errorpublic void deleteRule(int index)
throws DOMException
index - the insert posDOMException - in case of errorpublic void setRuleList(CSSRuleListImpl rules)
rules - the new rule listpublic boolean equals(Object obj)
equals in class AbstractCSSRuleImplpublic int hashCode()
hashCode in class AbstractCSSRuleImplCopyright © 2021. All rights reserved.