API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.css. CSSMediaRule View Source
Author(s)
Since
DOM Level 2
Version
Serial
Hierarchy
 CSSRule
      CSSMediaRule
Subinterfaces
Description
public interface CSSMediaRule
  The CSSMediaRule interface represents a @media rule in a CSS style sheet.
See also:   
Methods
Hide/Show inherited methods
public void deleteRule (int index) throws DOMException
  Used to delete a rule from the media block.
public CSSRuleList getCssRules ()
A list of all CSS rules contained within the media block.
public MediaList getMedia ()
A list of media types for this rule.
public int insertRule (String rule, int index) throws DOMException
  Used to insert a new rule into the media block.
Fields
Hide/Show inherited fields
publicfinalstatic short CHARSET_RULE = "2" [Inherited From CSSRule]
The rule is a CSSCharsetRule.
publicfinalstatic short FONT_FACE_RULE = "5" [Inherited From CSSRule]
The rule is a CSSFontFaceRule.
publicfinalstatic short IMPORT_RULE = "3" [Inherited From CSSRule]
The rule is a CSSImportRule.
publicfinalstatic short MEDIA_RULE = "4" [Inherited From CSSRule]
The rule is a CSSMediaRule.
publicfinalstatic short PAGE_RULE = "6" [Inherited From CSSRule]
The rule is a CSSPageRule.
publicfinalstatic short STYLE_RULE = "1" [Inherited From CSSRule]
The rule is a CSSStyleRule.
publicfinalstatic short UNKNOWN_RULE = "0" [Inherited From CSSRule]
The rule is a CSSUnknownRule.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar