java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
org.htmlunit.cssparser.dom.CSSPageRuleImpl
- All Implemented Interfaces:
Serializable,Locatable
Implementation of CSSPageRule.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCSSPageRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String pseudoPage) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCssText.Returns the selector text.getStyle()Returns the style.inthashCode()voidsetCssText(String cssText) Sets the css text.voidsetSelectorText(String selectorText) Sets the selector text.voidsetStyle(CSSStyleDeclarationImpl style) Changes the style.toString()Methods inherited from class org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
getParentRule, getParentStyleSheet, setParentRule, setParentStyleSheetMethods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
Constructor Details
-
CSSPageRuleImpl
public CSSPageRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String pseudoPage) Ctor.- Parameters:
parentStyleSheet- the parent style sheetparentRule- the parent rulepseudoPage- the pseudo page
-
-
Method Details
-
getCssText
getCssText.
- Specified by:
getCssTextin classAbstractCSSRuleImpl- Returns:
- the current css text
-
setCssText
Sets the css text.- Specified by:
setCssTextin classAbstractCSSRuleImpl- Parameters:
cssText- the new css text- Throws:
DOMException
-
getSelectorText
Returns the selector text.- Returns:
- the selector text
-
setSelectorText
Sets the selector text.- Parameters:
selectorText- the new selector text- Throws:
DOMException- if the selector text is invalid
-
getStyle
Returns the style.- Returns:
- the style
-
setStyle
Changes the style.- Parameters:
style- the new style
-
equals
- Overrides:
equalsin classAbstractCSSRuleImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractCSSRuleImpl
-
toString
-