Class PageContextNode

java.lang.Object
com.itextpdf.styledxmlparser.css.CssContextNode
com.itextpdf.styledxmlparser.css.page.PageContextNode
All Implemented Interfaces:
INode, IStylesContainer

public class PageContextNode extends CssContextNode
CssContextNode implementation for page contexts.
  • Constructor Details

    • PageContextNode

      public PageContextNode()
      Creates a new PageContextNode instance.
    • PageContextNode

      public PageContextNode (INode parentNode)
      Creates a new PageContextNode instance.
      Parameters:
      parentNode - the parent node
  • Method Details

    • addPageClass

      public PageContextNode addPageClass (String pageClass)
      Adds a page class.
      Parameters:
      pageClass - the page class
      Returns:
      the page context node
    • getPageTypeName

      public String getPageTypeName()
      Gets the page type name.
      Returns:
      the page type name
    • setPageTypeName

      public PageContextNode setPageTypeName (String pageTypeName)
      Sets the page type name.
      Parameters:
      pageTypeName - the page type name
      Returns:
      the page context node
    • getPageClasses

      public List<String> getPageClasses()
      Gets the list of page classes.
      Returns:
      the page classes