Class CSSStyleRuleImpl
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
org.htmlunit.cssparser.dom.CSSStyleRuleImpl
- All Implemented Interfaces:
Serializable, Locatable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCSSStyleRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, SelectorList selectors) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetStyle()inthashCode()voidsetCssText(String cssText) Sets the css text.voidsetSelectors(SelectorList selectors) Updates the selectors.voidsetSelectorText(String selectorText) Sets the selector text.voidsetStyle(CSSStyleDeclarationImpl style) Replaces the style.toString()Methods inherited from class AbstractCSSRuleImpl
getParentRule, getParentStyleSheet, setParentRule, setParentStyleSheetMethods inherited from class AbstractLocatable
getLocator, setLocator
-
Field Details
-
selectors_
-
style_
-
-
Constructor Details
-
CSSStyleRuleImpl
public CSSStyleRuleImpl(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule, SelectorList selectors) Ctor.- Parameters:
parentStyleSheet- the parent style sheetparentRule- the parent ruleselectors- the selectors
-
-
Method Details
-
getSelectors
- Returns:
- all selectors
-
setSelectors
Updates the selectors.- Parameters:
selectors- the new selectors
-
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
-
setSelectorText
Sets the selector text.- Parameters:
selectorText- the new selector text- Throws:
DOMException- in clase of error
-
getStyle
- Returns:
- the style
-
setStyle
Replaces the style.- Parameters:
style- the new style
-
toString
-
equals
- Overrides:
equalsin classAbstractCSSRuleImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractCSSRuleImpl
-