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:
java.io.Serializable,Locatable
public class CSSPageRuleImpl extends AbstractCSSRuleImpl
Implementation of CSSPageRule.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringpseudoPage_private CSSStyleDeclarationImplstyle_
-
Constructor Summary
Constructors Constructor Description CSSPageRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, java.lang.String pseudoPage)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCssText()java.lang.StringgetSelectorText()CSSStyleDeclarationImplgetStyle()inthashCode()voidsetCssText(java.lang.String cssText)Sets the css text.voidsetSelectorText(java.lang.String selectorText)Sets the selector text.voidsetStyle(CSSStyleDeclarationImpl style)Changes the style.java.lang.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
-
-
-
-
Field Detail
-
pseudoPage_
private java.lang.String pseudoPage_
-
style_
private CSSStyleDeclarationImpl style_
-
-
Constructor Detail
-
CSSPageRuleImpl
public CSSPageRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, java.lang.String pseudoPage)
Ctor.- Parameters:
parentStyleSheet- the parent style sheetparentRule- the parent rulepseudoPage- the pseudo page
-
-
Method Detail
-
getCssText
public java.lang.String getCssText()
- Specified by:
getCssTextin classAbstractCSSRuleImpl- Returns:
- the current css text
-
setCssText
public void setCssText(java.lang.String cssText) throws org.w3c.dom.DOMExceptionSets the css text.- Specified by:
setCssTextin classAbstractCSSRuleImpl- Parameters:
cssText- the new css text- Throws:
org.w3c.dom.DOMException
-
getSelectorText
public java.lang.String getSelectorText()
- Returns:
- the current selector text
-
setSelectorText
public void setSelectorText(java.lang.String selectorText) throws org.w3c.dom.DOMExceptionSets the selector text.- Parameters:
selectorText- the new selector text- Throws:
org.w3c.dom.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(java.lang.Object obj)
- Overrides:
equalsin classAbstractCSSRuleImpl
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCSSRuleImpl
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-