Class CssContextNode

java.lang.Object
com.itextpdf.styledxmlparser.css.CssContextNode
All Implemented Interfaces:
INode, IStylesContainer
Direct Known Subclasses:
CssPseudoElementNode, PageContextNode, PageMarginBoxContextNode

public abstract class CssContextNode extends Object implements INode, IStylesContainer
The CSS context node.
  • Constructor Details

    • CssContextNode

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

    • childNodes

      public List<INode> childNodes()
      Description copied from interface: INode
      Gets the child nodes.
      Specified by:
      childNodes in interface INode
      Returns:
      a list of INode instances.
    • addChild

      public void addChild (INode node)
      Description copied from interface: INode
      Adds a child node.
      Specified by:
      addChild in interface INode
      Parameters:
      node - a child node that will be added to the current node
    • parentNode

      public INode parentNode()
      Description copied from interface: INode
      Gets the parent node.
      Specified by:
      parentNode in interface INode
      Returns:
      the parent node
    • setStyles

      public void setStyles (Map<String,String> stringStringMap)
      Description copied from interface: IStylesContainer
      Sets the styles.
      Specified by:
      setStyles in interface IStylesContainer
      Parameters:
      stringStringMap - a Map with style keys and values.
    • getStyles

      public Map<String,String> getStyles()
      Description copied from interface: IStylesContainer
      Gets the styles.
      Specified by:
      getStyles in interface IStylesContainer
      Returns:
      the styles