Class WaitingInlineElementsHelper

java.lang.Object
com.itextpdf.html2pdf.attach.util.WaitingInlineElementsHelper

public class WaitingInlineElementsHelper extends Object
Helper class for waiting inline elements.
  • Constructor Details

    • WaitingInlineElementsHelper

      public WaitingInlineElementsHelper (String whiteSpace, String textTransform)
      Creates a new WaitingInlineElementsHelper instance.
      Parameters:
      whiteSpace - we'll check if this value equals "pre" or "pre-wrap"
      textTransform - will define the transformation that needs to be applied to the text
  • Method Details

    • add

      public void add (String text)
      Adds text to the waiting leaves.
      Parameters:
      text - the text
    • add

      public void add (com.itextpdf.layout.element.ILeafElement element)
      Adds a leaf element to the waiting leaves.
      Parameters:
      element - the element
    • add

      public void add (com.itextpdf.layout.element.IBlockElement element)
    • addAll

      public void addAll (Collection collection)
      Adds a collecton of leaf elements to the waiting leaves.
      Parameters:
      collection - the collection
    • flushHangingLeaves

      public void flushHangingLeaves (com.itextpdf.layout.IPropertyContainer container)
      Flush hanging leaves.
      Parameters:
      container - a container element
    • getWaitingLeaves

      public Collection getWaitingLeaves()
      Gets the waiting leaves.
      Returns:
      the waiting leaves
    • getSanitizedWaitingLeaves

      public List getSanitizedWaitingLeaves()
      Gets the sanitized waiting leaves.
      Returns:
      the sanitized waiting leaves
    • clearWaitingLeaves

      public void clearWaitingLeaves()
      Clears the waiting leaves.
    • createParagraphContainer

      public com.itextpdf.layout.element.Paragraph createParagraphContainer()
      Creates a paragraph container.
      Returns:
      the paragraph container