Class WaitingInlineElementsHelper
java.lang.Object
com.itextpdf.html2pdf.attach.util.WaitingInlineElementsHelper
Helper class for waiting inline elements.
-
Constructor Summary
ConstructorDescriptionWaitingInlineElementsHelper
(String whiteSpace, String textTransform) Creates a newWaitingInlineElementsHelper
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(com.itextpdf.layout.element.IBlockElement element) void
add
(com.itextpdf.layout.element.ILeafElement element) Adds a leaf element to the waiting leaves.void
Adds text to the waiting leaves.void
addAll
(Collection collection) Adds a collecton of leaf elements to the waiting leaves.void
Clears the waiting leaves.com.itextpdf.layout.element.Paragraph
Creates a paragraph container.void
flushHangingLeaves
(com.itextpdf.layout.IPropertyContainer container) Flush hanging leaves.Gets the sanitized waiting leaves.Gets the waiting leaves.
-
Constructor Details
-
WaitingInlineElementsHelper
Creates a newWaitingInlineElementsHelper
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
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
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
Gets the waiting leaves.- Returns:
- the waiting leaves
-
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
-