public class CSSMediaRuleImpl extends AbstractCSSRuleImpl implements org.w3c.dom.css.CSSMediaRule
CSSMediaRule.CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE| Constructor and Description |
|---|
CSSMediaRuleImpl() |
CSSMediaRuleImpl(CSSStyleSheetImpl parentStyleSheet,
org.w3c.dom.css.CSSRule parentRule,
org.w3c.dom.stylesheets.MediaList media) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRule(int index) |
boolean |
equals(Object obj) |
org.w3c.dom.css.CSSRuleList |
getCssRules() |
String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
org.w3c.dom.stylesheets.MediaList |
getMedia() |
short |
getType() |
int |
hashCode() |
int |
insertRule(String rule,
int index) |
void |
setCssRules(org.w3c.dom.css.CSSRuleList cssRules) |
void |
setCssText(String cssText) |
void |
setMedia(org.w3c.dom.stylesheets.MediaList media) |
void |
setRuleList(CSSRuleListImpl rules) |
String |
toString() |
getCssText, getParentRule, getParentStyleSheet, getParentStyleSheetImpl, setParentRule, setParentStyleSheetgetUserData, getUserDataMap, setUserData, setUserDataMapclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCssText, getParentRule, getParentStyleSheetpublic CSSMediaRuleImpl(CSSStyleSheetImpl parentStyleSheet, org.w3c.dom.css.CSSRule parentRule, org.w3c.dom.stylesheets.MediaList media)
public CSSMediaRuleImpl()
public void setMedia(org.w3c.dom.stylesheets.MediaList media)
public void setCssRules(org.w3c.dom.css.CSSRuleList cssRules)
public short getType()
getType in interface org.w3c.dom.css.CSSRulepublic String getCssText(CSSFormat format)
getCssText in interface CSSFormatablegetCssText in class AbstractCSSRuleImplformat - the formatting rulespublic void setCssText(String cssText) throws DOMException
setCssText in interface org.w3c.dom.css.CSSRuleDOMExceptionpublic org.w3c.dom.stylesheets.MediaList getMedia()
getMedia in interface org.w3c.dom.css.CSSMediaRulepublic org.w3c.dom.css.CSSRuleList getCssRules()
getCssRules in interface org.w3c.dom.css.CSSMediaRulepublic int insertRule(String rule, int index) throws DOMException
insertRule in interface org.w3c.dom.css.CSSMediaRuleDOMExceptionpublic void deleteRule(int index)
throws DOMException
deleteRule in interface org.w3c.dom.css.CSSMediaRuleDOMExceptionpublic void setRuleList(CSSRuleListImpl rules)
public boolean equals(Object obj)
equals in class AbstractCSSRuleImplpublic int hashCode()
hashCode in class AbstractCSSRuleImplCopyright © 1999–2022. All rights reserved.