Package org.htmlunit.cssparser.dom
Class CSSPageRuleImpl
- java.lang.Object
-
- org.htmlunit.cssparser.parser.AbstractLocatable
-
- org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
-
- org.htmlunit.cssparser.dom.CSSPageRuleImpl
-
- All Implemented Interfaces:
Serializable,Locatable
public class CSSPageRuleImpl extends AbstractCSSRuleImpl
Implementation of CSSPageRule.- Author:
- Ronald Brill
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CSSPageRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String pseudoPage)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCssText()getCssText.StringgetSelectorText()getSelectorText.CSSStyleDeclarationImplgetStyle()inthashCode()voidsetCssText(String cssText)Sets the css text.voidsetSelectorText(String selectorText)Sets the selector text.voidsetStyle(CSSStyleDeclarationImpl style)Changes the style.StringtoString()-
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 Detail
-
CSSPageRuleImpl
public CSSPageRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, String pseudoPage)
Ctor.- Parameters:
parentStyleSheet- the parent style sheetparentRule- the parent rulepseudoPage- the pseudo page
-
-
Method Detail
-
getCssText
public String getCssText()
getCssText.
- Specified by:
getCssTextin classAbstractCSSRuleImpl- Returns:
- the current css text
-
setCssText
public void setCssText(String cssText) throws DOMException
Sets the css text.- Specified by:
setCssTextin classAbstractCSSRuleImpl- Parameters:
cssText- the new css text- Throws:
DOMException
-
getSelectorText
public String getSelectorText()
getSelectorText.
- Returns:
- the selector text
-
setSelectorText
public void setSelectorText(String selectorText) throws DOMException
Sets the selector text.- Parameters:
selectorText- the new selector text- Throws:
DOMException
-
getStyle
public CSSStyleDeclarationImpl getStyle()
- Returns:
- the style
-
setStyle
public void setStyle(CSSStyleDeclarationImpl style)
Changes the style.- Parameters:
style- the new style
-
equals
public boolean equals(Object obj)
Description copied from class:AbstractCSSRuleImpl- Overrides:
equalsin classAbstractCSSRuleImpl
-
hashCode
public int hashCode()
Description copied from class:AbstractCSSRuleImpl- Overrides:
hashCodein classAbstractCSSRuleImpl
-
-