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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The Constant PAGE_COUNTER_TAG.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PageCountElementNode(boolean totalPageCount, com.itextpdf.styledxmlparser.node.INode parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    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

  • Constructor Details

    • PageCountElementNode

      public PageCountElementNode (boolean totalPageCount, com.itextpdf.styledxmlparser.node.INode parent)
  • Method Details

    • childNodes

      public List childNodes()
      Specified by:
      childNodes in interface com.itextpdf.styledxmlparser.node.INode
      Overrides:
      childNodes in class com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
    • addChild

      public void addChild (com.itextpdf.styledxmlparser.node.INode node)
      Specified by:
      addChild in interface com.itextpdf.styledxmlparser.node.INode
      Overrides:
      addChild in class com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
    • parentNode

      public com.itextpdf.styledxmlparser.node.INode parentNode()
      Specified by:
      parentNode in interface com.itextpdf.styledxmlparser.node.INode
      Overrides:
      parentNode in class com.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

      public CounterDigitsGlyphStyle getDigitsGlyphStyle()
      Gets glyph style for digits.
      Returns:
      name of the glyph style
    • setDigitsGlyphStyle

      public PageCountElementNode setDigitsGlyphStyle (CounterDigitsGlyphStyle digitsGlyphStyle)
      Sets glyph style for digits.
      Parameters:
      digitsGlyphStyle - name of the glyph style
      Returns:
      this PageCountElementNode instance