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 node
pseudoElementName - the pseudo element name
public String getPseudoElementName()
public String name()
IElementNode
name in interface IElementNode
public IAttributes getAttributes()
IElementNode
getAttributes in interface IElementNode
public String getAttribute(String key)
IElementNode
getAttribute in interface IElementNode
key - the key of the attribute we want to get
public List<Map<String,String>> getAdditionalHtmlStyles()
IElementNode
getAdditionalHtmlStyles in interface IElementNode
public void addAdditionalHtmlStyles(Map<String,String> styles)
IElementNode
addAdditionalHtmlStyles in interface IElementNode
styles - the styles
public String getLang()
IElementNode
getLang in interface IElementNode
Copyright © 1998–2019 iText Group NV. All rights reserved.