public abstract class AbstractCSSRuleImpl extends CSSOMObjectImpl implements CSSFormatable
Constructor and Description |
---|
AbstractCSSRuleImpl() |
AbstractCSSRuleImpl(CSSStyleSheetImpl parentStyleSheet,
org.w3c.dom.css.CSSRule parentRule) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCssText()
Same as
getCssText(CSSFormat) but using the default format. |
abstract String |
getCssText(CSSFormat format)
Returns a string representation of the rule based on the given format.
|
org.w3c.dom.css.CSSRule |
getParentRule() |
org.w3c.dom.css.CSSStyleSheet |
getParentStyleSheet() |
protected CSSStyleSheetImpl |
getParentStyleSheetImpl() |
int |
hashCode() |
void |
setParentRule(org.w3c.dom.css.CSSRule parentRule) |
void |
setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet) |
getUserData, getUserDataMap, setUserData, setUserDataMap
public AbstractCSSRuleImpl(CSSStyleSheetImpl parentStyleSheet, org.w3c.dom.css.CSSRule parentRule)
public AbstractCSSRuleImpl()
protected CSSStyleSheetImpl getParentStyleSheetImpl()
public void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
public void setParentRule(org.w3c.dom.css.CSSRule parentRule)
public org.w3c.dom.css.CSSStyleSheet getParentStyleSheet()
public org.w3c.dom.css.CSSRule getParentRule()
public abstract String getCssText(CSSFormat format)
getCssText
in interface CSSFormatable
format
- the formatting rulespublic String getCssText()
getCssText(CSSFormat)
but using the default format.public boolean equals(Object obj)
equals
in class CSSOMObjectImpl
public int hashCode()
hashCode
in class CSSOMObjectImpl
Copyright © 1999–2020. All rights reserved.