Class PageCountElementNode
java.lang.Object
com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupElementNode
com.itextpdf.html2pdf.css.resolve.func.counter.PageCountElementNode
- All Implemented Interfaces:
-
com.itextpdf.styledxmlparser.node.ICustomElementNode
,com.itextpdf.styledxmlparser.node.IElementNode
,com.itextpdf.styledxmlparser.node.INode
,com.itextpdf.styledxmlparser.node.IStylesContainer
- Direct Known Subclasses:
-
PageTargetCountElementNode
public class PageCountElementNode extends com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupElementNode implements com.itextpdf.styledxmlparser.node.ICustomElementNode
ICustomElementNode
implementation for a page count element node.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPageCountElementNode
(boolean totalPageCount, com.itextpdf.styledxmlparser.node.INode parent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(com.itextpdf.styledxmlparser.node.INode node) Gets glyph style for digits.boolean
Checks if the node represents the total page count.com.itextpdf.styledxmlparser.node.INode
setDigitsGlyphStyle
(CounterDigitsGlyphStyle digitsGlyphStyle) Sets glyph style for digits.Methods inherited from class com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupElementNode
addAdditionalHtmlStyles, getAdditionalHtmlStyles, getAttribute, getAttributes, getLang, getStyles, name, setStyles, text
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.IElementNode
addAdditionalHtmlStyles, getAdditionalHtmlStyles, getAttribute, getAttributes, getLang, name
Methods inherited from interface com.itextpdf.styledxmlparser.node.IStylesContainer
getStyles, setStyles
-
Field Details
-
PAGE_COUNTER_TAG
The Constant PAGE_COUNTER_TAG.- See Also:
-
-
Constructor Details
-
PageCountElementNode
public PageCountElementNode(boolean totalPageCount, com.itextpdf.styledxmlparser.node.INode parent)
-
-
Method Details
-
childNodes
- Specified by:
-
childNodes
in interfacecom.itextpdf.styledxmlparser.node.INode
- Overrides:
-
childNodes
in classcom.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
-
addChild
public void addChild(com.itextpdf.styledxmlparser.node.INode node) - Specified by:
-
addChild
in interfacecom.itextpdf.styledxmlparser.node.INode
- Overrides:
-
addChild
in classcom.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
-
parentNode
public com.itextpdf.styledxmlparser.node.INode parentNode()- Specified by:
-
parentNode
in interfacecom.itextpdf.styledxmlparser.node.INode
- Overrides:
-
parentNode
in classcom.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
-
isTotalPageCount
public boolean isTotalPageCount()Checks if the node represents the total page count.- Returns:
- true, if the node represents the total page count
-
getDigitsGlyphStyle
Gets glyph style for digits.- Returns:
- name of the glyph style
-
setDigitsGlyphStyle
Sets glyph style for digits.- Parameters:
-
digitsGlyphStyle
- name of the glyph style - Returns:
-
this
PageCountElementNode
instance
-