com.steadystate.css.dom
Class CSSMediaRuleImpl
java.lang.Object
com.steadystate.css.dom.CSSOMObjectImpl
com.steadystate.css.dom.AbstractCSSRuleImpl
com.steadystate.css.dom.CSSMediaRuleImpl
- All Implemented Interfaces:
- CSSOMObject, java.io.Serializable, org.w3c.dom.css.CSSMediaRule, org.w3c.dom.css.CSSRule
public class CSSMediaRuleImpl
- extends AbstractCSSRuleImpl
- implements org.w3c.dom.css.CSSMediaRule, java.io.Serializable
Implementation of CSSMediaRule
.
- Version:
- $Id: CSSMediaRuleImpl.java,v 1.2 2008/03/26 02:17:24 sdanig Exp $
- Author:
- David Schweinsberg
- See Also:
- Serialized Form
Fields inherited from interface org.w3c.dom.css.CSSRule |
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.css.CSSRule |
getParentRule, getParentStyleSheet |
CSSMediaRuleImpl
public CSSMediaRuleImpl(CSSStyleSheetImpl parentStyleSheet,
org.w3c.dom.css.CSSRule parentRule,
org.w3c.dom.stylesheets.MediaList media)
CSSMediaRuleImpl
public CSSMediaRuleImpl()
setMedia
public void setMedia(org.w3c.dom.stylesheets.MediaList media)
setCssRules
public void setCssRules(org.w3c.dom.css.CSSRuleList cssRules)
getType
public short getType()
- Specified by:
getType
in interface org.w3c.dom.css.CSSRule
getCssText
public java.lang.String getCssText()
- Specified by:
getCssText
in interface org.w3c.dom.css.CSSRule
setCssText
public void setCssText(java.lang.String cssText)
throws org.w3c.dom.DOMException
- Specified by:
setCssText
in interface org.w3c.dom.css.CSSRule
- Throws:
org.w3c.dom.DOMException
getMedia
public org.w3c.dom.stylesheets.MediaList getMedia()
- Specified by:
getMedia
in interface org.w3c.dom.css.CSSMediaRule
getCssRules
public org.w3c.dom.css.CSSRuleList getCssRules()
- Specified by:
getCssRules
in interface org.w3c.dom.css.CSSMediaRule
insertRule
public int insertRule(java.lang.String rule,
int index)
throws org.w3c.dom.DOMException
- Specified by:
insertRule
in interface org.w3c.dom.css.CSSMediaRule
- Throws:
org.w3c.dom.DOMException
deleteRule
public void deleteRule(int index)
throws org.w3c.dom.DOMException
- Specified by:
deleteRule
in interface org.w3c.dom.css.CSSMediaRule
- Throws:
org.w3c.dom.DOMException
setRuleList
public void setRuleList(CSSRuleListImpl rules)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2011. All Rights Reserved.