public class WaitingInlineElementsHelper extends Object
| Constructor and Description |
|---|
WaitingInlineElementsHelper(String whiteSpace,
String textTransform)
Creates a new
WaitingInlineElementsHelper instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.itextpdf.layout.element.IBlockElement element) |
void |
add(com.itextpdf.layout.element.ILeafElement element)
Adds a leaf element to the waiting leaves.
|
void |
add(String text)
Adds text to the waiting leaves.
|
void |
addAll(Collection<com.itextpdf.layout.element.ILeafElement> collection)
Adds a collecton of leaf elements to the waiting leaves.
|
void |
clearWaitingLeaves()
Clears the waiting leaves.
|
com.itextpdf.layout.element.Paragraph |
createParagraphContainer()
Creates a paragraph container.
|
void |
flushHangingLeaves(com.itextpdf.layout.IPropertyContainer container)
Flush hanging leaves.
|
List<com.itextpdf.layout.element.IElement> |
getSanitizedWaitingLeaves()
Gets the sanitized waiting leaves.
|
Collection<com.itextpdf.layout.element.IElement> |
getWaitingLeaves()
Gets the waiting leaves.
|
public WaitingInlineElementsHelper(String whiteSpace, String textTransform)
WaitingInlineElementsHelper instance.whiteSpace - we'll check if this value equals "pre" or "pre-wrap"textTransform - will define the transformation that needs to be applied to the textpublic void add(String text)
text - the textpublic void add(com.itextpdf.layout.element.ILeafElement element)
element - the elementpublic void add(com.itextpdf.layout.element.IBlockElement element)
public void addAll(Collection<com.itextpdf.layout.element.ILeafElement> collection)
collection - the collectionpublic void flushHangingLeaves(com.itextpdf.layout.IPropertyContainer container)
container - a container elementpublic Collection<com.itextpdf.layout.element.IElement> getWaitingLeaves()
public List<com.itextpdf.layout.element.IElement> getSanitizedWaitingLeaves()
public void clearWaitingLeaves()
public com.itextpdf.layout.element.Paragraph createParagraphContainer()
Copyright © 1998–2018 iText Group NV. All rights reserved.