Package org.htmlunit.cssparser.dom
Class CSSFontFaceRuleImpl
java.lang.Object
org.htmlunit.cssparser.parser.AbstractLocatable
org.htmlunit.cssparser.dom.AbstractCSSRuleImpl
org.htmlunit.cssparser.dom.CSSFontFaceRuleImpl
- All Implemented Interfaces:
Serializable
,Locatable
Implementation of CSSFontFaceRule.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
ConstructorDescriptionCSSFontFaceRuleImpl
(CSSStyleSheetImpl parentStyleSheet, AbstractCSSRuleImpl parentRule) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCssText.getStyle()
getStyle.int
hashCode()
void
setCssText
(String cssText) Sets the css text.void
setStyle
(CSSStyleDeclarationImpl style) Sets the style to a new one.toString()
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
-
CSSFontFaceRuleImpl
Ctor.- Parameters:
parentStyleSheet
- the parent style sheetparentRule
- the parent rule
-
-
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
-
getStyle
getStyle.
- Returns:
- the style
-
setStyle
Sets the style to a new one.- Parameters:
style
- the new style
-
equals
- Overrides:
equals
in classAbstractCSSRuleImpl
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractCSSRuleImpl
-
toString
-