info.informatica.doc.style.css.dom
Class DOMCSSMediaRule

java.lang.Object
  extended by info.informatica.doc.style.css.dom.BaseCSSRule
      extended by info.informatica.doc.style.css.dom.DOMCSSMediaRule
All Implemented Interfaces:
org.w3c.dom.css.CSSMediaRule, org.w3c.dom.css.CSSRule

public class DOMCSSMediaRule
extends BaseCSSRule
implements org.w3c.dom.css.CSSMediaRule

Implementation of CSSMediaRule.

Author:
Carlos Amengual (amengual at informatica.info)

Nested Class Summary
 class DOMCSSMediaRule.RulesetDocumentHandler
           
 
Field Summary
 
Fields inherited from class info.informatica.doc.style.css.dom.BaseCSSRule
insertionIndex
 
Fields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE
 
Constructor Summary
DOMCSSMediaRule(org.w3c.dom.css.CSSStyleSheet parentSheet)
           
 
Method Summary
 int addRule(org.w3c.dom.css.CSSRule cssrule)
           
 void deleteRule(int index)
           
 org.w3c.dom.css.CSSRuleList getCssRules()
           
 String getCssText()
           
 org.w3c.dom.stylesheets.MediaList getMedia()
           
 int insertRule(org.w3c.dom.css.CSSRule cssrule, int index)
           
 int insertRule(String rule, int index)
           
 void setCssText(String cssText)
           
 
Methods inherited from class info.informatica.doc.style.css.dom.BaseCSSRule
createCSSRule, getParentRule, getParentStyleSheet, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.css.CSSRule
getParentRule, getParentStyleSheet, getType
 

Constructor Detail

DOMCSSMediaRule

public DOMCSSMediaRule(org.w3c.dom.css.CSSStyleSheet parentSheet)
Method Detail

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(String rule,
                      int index)
               throws DOMException
Specified by:
insertRule in interface org.w3c.dom.css.CSSMediaRule
Throws:
DOMException

deleteRule

public void deleteRule(int index)
                throws DOMException
Specified by:
deleteRule in interface org.w3c.dom.css.CSSMediaRule
Throws:
DOMException

insertRule

public int insertRule(org.w3c.dom.css.CSSRule cssrule,
                      int index)

addRule

public int addRule(org.w3c.dom.css.CSSRule cssrule)

getCssText

public String getCssText()
Specified by:
getCssText in interface org.w3c.dom.css.CSSRule
Specified by:
getCssText in class BaseCSSRule

setCssText

public void setCssText(String cssText)
                throws DOMException
Specified by:
setCssText in interface org.w3c.dom.css.CSSRule
Specified by:
setCssText in class BaseCSSRule
Throws:
DOMException


Copyright © 2011 informatica.info. All Rights Reserved.