FileDocCategorySizeDatePackage
CSSStyleRule.javaAPI DocJava SE 5 API1604Fri Aug 26 14:58:38 BST 2005org.w3c.dom.css

CSSStyleRule

public interface CSSStyleRule implements 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

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetSelectorText()
The textual representation of the selector for the rule set. The implementation may have stripped out insignificant whitespace while parsing the selector.

exception
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.

public org.w3c.dom.css.CSSStyleDeclarationgetStyle()
The declaration-block of this rule set.

public voidsetSelectorText(java.lang.String selectorText)