Package org.htmlunit.cssparser.dom
Class CSSImportRuleImpl
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
org.htmlunit.cssparser.dom.CSSImportRuleImpl
- All Implemented Interfaces:
Serializable
,Locatable
Implementation of CSSImportRule.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionCSSImportRuleImpl
(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String href, MediaListImpl media) Ctor. -
Method Summary
Methods inherited from class org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
getParentRule, getParentStyleSheet, setParentRule, setParentStyleSheet
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
Constructor Details
-
CSSImportRuleImpl
public CSSImportRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String href, MediaListImpl media) Ctor.- Parameters:
parentStyleSheet
- the parent style sheetparentRule
- the parent rulehref
- the hrefmedia
- the media
-
-
Method Details
-
getCssText
getCssText.
- Specified by:
getCssText
in classAbstractCSSRuleImpl
- Returns:
- the current css text
-
setCssText
Sets the css text.- Specified by:
setCssText
in classAbstractCSSRuleImpl
- Parameters:
cssText
- the new css text- Throws:
DOMException
-
getHref
getHref.
- Returns:
- the href
-
getMedia
getMedia.
- Returns:
- the media lsit
-
getStyleSheet
getStyleSheet.
- Returns:
- the parent style sheet
-
toString
-
equals
- Overrides:
equals
in classAbstractCSSRuleImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractCSSRuleImpl
-