com.steadystate.css.dom
public class CSSStyleRuleImpl extends java.lang.Object implements CSSStyleRule, java.io.Serializable
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE
Constructor and Description |
---|
CSSStyleRuleImpl(CSSStyleSheetImpl parentStyleSheet,
CSSRule parentRule,
SelectorList selectors) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCssText()
The parsable textual representation of the rule.
|
CSSRule |
getParentRule()
If this rule is contained inside another rule (e.g.
|
CSSStyleSheet |
getParentStyleSheet()
The style sheet that contains this rule.
|
java.lang.String |
getSelectorText()
The textual representation of the selector for the rule set.
|
CSSStyleDeclaration |
getStyle()
The declaration-block of this rule set.
|
short |
getType()
The type of the rule, as defined above.
|
void |
setCssText(java.lang.String cssText) |
void |
setSelectorText(java.lang.String selectorText) |
void |
setStyle(CSSStyleDeclarationImpl style) |
java.lang.String |
toString() |
public CSSStyleRuleImpl(CSSStyleSheetImpl parentStyleSheet, CSSRule parentRule, SelectorList selectors)
public short getType()
CSSRule
CSSRule
interface to the specific
derived interface implied by the type
.public java.lang.String getCssText()
CSSRule
getCssText
in interface CSSRule
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMException
setCssText
in interface CSSRule
org.w3c.dom.DOMException
public CSSStyleSheet getParentStyleSheet()
CSSRule
getParentStyleSheet
in interface CSSRule
public CSSRule getParentRule()
CSSRule
null
.getParentRule
in interface CSSRule
public java.lang.String getSelectorText()
CSSStyleRule
getSelectorText
in interface CSSStyleRule
public void setSelectorText(java.lang.String selectorText) throws org.w3c.dom.DOMException
setSelectorText
in interface CSSStyleRule
org.w3c.dom.DOMException
public CSSStyleDeclaration getStyle()
CSSStyleRule
getStyle
in interface CSSStyleRule
public void setStyle(CSSStyleDeclarationImpl style)
public java.lang.String toString()
toString
in class java.lang.Object