public class CssPseudoElementNode extends CssContextNode implements IElementNode, ICustomElementNode
IElementNode implementation for pseudo elements.| Constructor and Description |
|---|
CssPseudoElementNode(INode parentNode,
String pseudoElementName)
Creates a new
CssPseudoElementNode instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalHtmlStyles(Map<String,String> styles)
Adds additional HTML styles.
|
List<Map<String,String>> |
getAdditionalHtmlStyles()
Gets additional styles, more specifically styles that affect an element
based on its position in the HTML DOM, e.g.
|
String |
getAttribute(String key)
Gets an attribute.
|
IAttributes |
getAttributes()
Gets the attributes.
|
String |
getLang()
Gets the language.
|
String |
getPseudoElementName()
Gets the pseudo element name.
|
String |
name()
Gets the name of the element node.
|
addChild, childNodes, getStyles, parentNode, setStylesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, childNodes, parentNodegetStyles, setStylespublic CssPseudoElementNode(INode parentNode, String pseudoElementName)
CssPseudoElementNode instance.parentNode - the parent nodepseudoElementName - the pseudo element namepublic String getPseudoElementName()
public String name()
name in interface IElementNodepublic IAttributes getAttributes()
getAttributes in interface IElementNodepublic String getAttribute(String key)
getAttribute in interface IElementNodekey - the key of the attribute we want to getpublic List<Map<String,String>> getAdditionalHtmlStyles()
getAdditionalHtmlStyles in interface IElementNodepublic void addAdditionalHtmlStyles(Map<String,String> styles)
addAdditionalHtmlStyles in interface IElementNodestyles - the stylespublic String getLang()
getLang in interface IElementNodeCopyright © 1998–2020 iText Group NV. All rights reserved.