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. 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.
|
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()
IElementNodename in interface IElementNodepublic IAttributes getAttributes()
IElementNodegetAttributes in interface IElementNodepublic String getAttribute(String key)
IElementNodegetAttribute in interface IElementNodekey - the key of the attribute we want to getpublic List<Map<String,String>> getAdditionalHtmlStyles()
IElementNodegetAdditionalHtmlStyles in interface IElementNodepublic void addAdditionalHtmlStyles(Map<String,String> styles)
IElementNodeaddAdditionalHtmlStyles in interface IElementNodestyles - the stylespublic String getLang()
IElementNodegetLang in interface IElementNodeCopyright © 1998–2017 iText Group NV. All rights reserved.