Class CssPseudoElementNode
java.lang.Object
com.itextpdf.styledxmlparser.css.CssContextNode
com.itextpdf.styledxmlparser.css.pseudo.CssPseudoElementNode
- All Implemented Interfaces:
-
ICustomElementNode
,IElementNode
,INode
,IStylesContainer
public class CssPseudoElementNode extends CssContextNode implements IElementNode, ICustomElementNode
IElementNode
implementation for pseudo elements.
-
Constructor Summary
ConstructorDescriptionCssPseudoElementNode
(INode parentNode, String pseudoElementName) Creates a newCssPseudoElementNode
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalHtmlStyles
(Map<String, String> styles) Adds additional HTML styles.Gets additional styles, more specifically styles that affect an element based on its position in the HTML DOM, e.g.getAttribute
(String key) Gets an attribute.Gets the attributes.getLang()
Gets the language.Gets the pseudo element name.name()
Gets the name of the element node.Methods inherited from class com.itextpdf.styledxmlparser.css.CssContextNode
addChild, childNodes, getStyles, parentNode, setStyles
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.itextpdf.styledxmlparser.node.INode
addChild, childNodes, parentNode
Methods inherited from interface com.itextpdf.styledxmlparser.node.IStylesContainer
getStyles, setStyles
-
Constructor Details
-
CssPseudoElementNode
Creates a newCssPseudoElementNode
instance.- Parameters:
-
parentNode
- the parent node -
pseudoElementName
- the pseudo element name
-
-
Method Details
-
getPseudoElementName
Gets the pseudo element name.- Returns:
- the pseudo element name
-
name
Gets the name of the element node.- Specified by:
-
name
in interfaceIElementNode
- Returns:
- the string
-
getAttributes
Gets the attributes.- Specified by:
-
getAttributes
in interfaceIElementNode
- Returns:
- the attributes
-
getAttribute
Gets an attribute.- Specified by:
-
getAttribute
in interfaceIElementNode
- Parameters:
-
key
- the key of the attribute we want to get - Returns:
- the value of the attribute
-
getAdditionalHtmlStyles
Gets additional styles, more specifically styles that affect an element based on its position in the HTML DOM, e.g. cell borders that are set due to the parent table "border" attribute, or styles from "col" tags that affect table elements, or blocks horizontal alignment that is the result of parent's "align" attribute.- Specified by:
-
getAdditionalHtmlStyles
in interfaceIElementNode
- Returns:
- the additional html styles
-
addAdditionalHtmlStyles
Adds additional HTML styles.- Specified by:
-
addAdditionalHtmlStyles
in interfaceIElementNode
- Parameters:
-
styles
- the styles
-
getLang
Gets the language.- Specified by:
-
getLang
in interfaceIElementNode
- Returns:
- the language value
-