org.w3c.dom.css
Interface CSSStyleRule

All Superinterfaces:
CSSRule sample code for org.w3c.dom.css.CSSRule definition code for org.w3c.dom.css.CSSRule

public interface CSSStyleRule
extends CSSRule sample code for org.w3c.dom.css.CSSRule definition code for org.w3c.dom.css.CSSRule

The CSSStyleRule interface represents a single rule set in a CSS style sheet.

See also the Document Object Model (DOM) Level 2 Style Specification.

Since:
DOM Level 2

Field Summary
 
Fields inherited from interface org.w3c.dom.css.CSSRule sample code for org.w3c.dom.css.CSSRule definition code for org.w3c.dom.css.CSSRule
CHARSET_RULE sample code for org.w3c.dom.css.CSSRule.CHARSET_RULE definition code for org.w3c.dom.css.CSSRule.CHARSET_RULE , FONT_FACE_RULE sample code for org.w3c.dom.css.CSSRule.FONT_FACE_RULE definition code for org.w3c.dom.css.CSSRule.FONT_FACE_RULE , IMPORT_RULE sample code for org.w3c.dom.css.CSSRule.IMPORT_RULE definition code for org.w3c.dom.css.CSSRule.IMPORT_RULE , MEDIA_RULE sample code for org.w3c.dom.css.CSSRule.MEDIA_RULE definition code for org.w3c.dom.css.CSSRule.MEDIA_RULE , PAGE_RULE sample code for org.w3c.dom.css.CSSRule.PAGE_RULE definition code for org.w3c.dom.css.CSSRule.PAGE_RULE , STYLE_RULE sample code for org.w3c.dom.css.CSSRule.STYLE_RULE definition code for org.w3c.dom.css.CSSRule.STYLE_RULE , UNKNOWN_RULE sample code for org.w3c.dom.css.CSSRule.UNKNOWN_RULE definition code for org.w3c.dom.css.CSSRule.UNKNOWN_RULE
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String getSelectorText sample code for org.w3c.dom.css.CSSStyleRule.getSelectorText() definition code for org.w3c.dom.css.CSSStyleRule.getSelectorText() ()
          The textual representation of the selector for the rule set.
 CSSStyleDeclaration sample code for org.w3c.dom.css.CSSStyleDeclaration definition code for org.w3c.dom.css.CSSStyleDeclaration getStyle sample code for org.w3c.dom.css.CSSStyleRule.getStyle() definition code for org.w3c.dom.css.CSSStyleRule.getStyle() ()
          The declaration-block of this rule set.
 void setSelectorText sample code for org.w3c.dom.css.CSSStyleRule.setSelectorText(java.lang.String) definition code for org.w3c.dom.css.CSSStyleRule.setSelectorText(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  selectorText)
           
 
Methods inherited from interface org.w3c.dom.css.CSSRule sample code for org.w3c.dom.css.CSSRule definition code for org.w3c.dom.css.CSSRule
getCssText sample code for org.w3c.dom.css.CSSRule.getCssText() definition code for org.w3c.dom.css.CSSRule.getCssText() , getParentRule sample code for org.w3c.dom.css.CSSRule.getParentRule() definition code for org.w3c.dom.css.CSSRule.getParentRule() , getParentStyleSheet sample code for org.w3c.dom.css.CSSRule.getParentStyleSheet() definition code for org.w3c.dom.css.CSSRule.getParentStyleSheet() , getType sample code for org.w3c.dom.css.CSSRule.getType() definition code for org.w3c.dom.css.CSSRule.getType() , setCssText sample code for org.w3c.dom.css.CSSRule.setCssText(java.lang.String) definition code for org.w3c.dom.css.CSSRule.setCssText(java.lang.String)
 

Method Detail

getSelectorText sample code for org.w3c.dom.css.CSSStyleRule.getSelectorText() definition code for org.w3c.dom.css.CSSStyleRule.getSelectorText()

String sample code for java.lang.String definition code for java.lang.String  getSelectorText()
The textual representation of the selector for the rule set. The implementation may have stripped out insignificant whitespace while parsing the selector.

Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this rule is readonly.

setSelectorText sample code for org.w3c.dom.css.CSSStyleRule.setSelectorText(java.lang.String) definition code for org.w3c.dom.css.CSSStyleRule.setSelectorText(java.lang.String)

void setSelectorText(String sample code for java.lang.String definition code for java.lang.String  selectorText)
                     throws DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException 
Throws:
DOMException sample code for org.w3c.dom.DOMException definition code for org.w3c.dom.DOMException

getStyle sample code for org.w3c.dom.css.CSSStyleRule.getStyle() definition code for org.w3c.dom.css.CSSStyleRule.getStyle()

CSSStyleDeclaration sample code for org.w3c.dom.css.CSSStyleDeclaration definition code for org.w3c.dom.css.CSSStyleDeclaration  getStyle()
The declaration-block of this rule set.