Class WaitingInlineElementsHelper
java.lang.Object
com.itextpdf.html2pdf.attach.util.WaitingInlineElementsHelper
Helper class for waiting inline elements.
-
Constructor Summary
ConstructorsConstructorDescriptionWaitingInlineElementsHelper(String whiteSpace, String textTransform) Creates a newWaitingInlineElementsHelperinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(com.itextpdf.layout.element.IBlockElement element) Adds a block element to the waiting leaves.voidadd(com.itextpdf.layout.element.ILeafElement element) Adds a leaf element to the waiting leaves.voidAdds text to the waiting leaves.voidaddAll(Collection collection) Adds a collecton of leaf elements to the waiting leaves.voidClears the waiting leaves.com.itextpdf.layout.element.ParagraphDeprecated.to remove as it is not used anywhere anymorevoidflushHangingLeaves(com.itextpdf.layout.IPropertyContainer container) Flush hanging leaves.Gets the sanitized waiting leaves.Gets the waiting leaves.
-
Constructor Details
-
WaitingInlineElementsHelper
Creates a newWaitingInlineElementsHelperinstance.- 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) Adds a block element to the waiting leaves.- Parameters:
-
element- the 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
Deprecated.to remove as it is not used anywhere anymoreCreates a paragraph container.- Returns:
- the paragraph container
-