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, setStyles
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, childNodes, parentNode
getStyles, setStyles
public CssPseudoElementNode(INode parentNode, String pseudoElementName)
CssPseudoElementNode
instance.
parentNode
- the parent node
pseudoElementName
- the pseudo element name
public String getPseudoElementName()
public String name()
name
in interface IElementNode
public IAttributes getAttributes()
getAttributes
in interface IElementNode
public String getAttribute(String key)
getAttribute
in interface IElementNode
key
- the key of the attribute we want to get
public List<Map<String,String>> getAdditionalHtmlStyles()
getAdditionalHtmlStyles
in interface IElementNode
public void addAdditionalHtmlStyles(Map<String,String> styles)
addAdditionalHtmlStyles
in interface IElementNode
styles
- the styles
public String getLang()
getLang
in interface IElementNode
Copyright © 1998–2021 iText Group NV. All rights reserved.