public class PTagWorker extends Object implements ITagWorker, IDisplayAware
p element.
This is how this worker processes the <p> tag:
WaitingInlineElementsHelper instance
display: block style, it wraps all the content which hasn't been handled yet
into a com.itextpdf.layout.element.Paragraph object and adds this paragraph to the resultant com.itextpdf.layout.element.Div object
| Modifier and Type | Field and Description |
|---|---|
protected com.itextpdf.layout.element.MulticolContainer |
multicolContainer
Container for the result in case of multicol layouting
|
| Constructor and Description |
|---|
PTagWorker(com.itextpdf.styledxmlparser.node.IElementNode element,
ProcessorContext context)
Creates a new
PTagWorker instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplay()
Gets the display value.
|
com.itextpdf.layout.IPropertyContainer |
getElementResult()
Gets a processed object if it can be expressed as an
IPropertyContainer instance. |
boolean |
processContent(String content,
ProcessorContext context)
Placeholder for what needs to be done while the content of a tag is being processed.
|
void |
processEnd(com.itextpdf.styledxmlparser.node.IElementNode element,
ProcessorContext context)
Placeholder for what needs to be done after the content of a tag has been processed.
|
boolean |
processTagChild(ITagWorker childTagWorker,
ProcessorContext context)
Placeholder for what needs to be done when a child node is being processed.
|
protected com.itextpdf.layout.element.MulticolContainer multicolContainer
public PTagWorker(com.itextpdf.styledxmlparser.node.IElementNode element,
ProcessorContext context)
PTagWorker instance.element - the elementcontext - the contextpublic void processEnd(com.itextpdf.styledxmlparser.node.IElementNode element,
ProcessorContext context)
ITagWorkerprocessEnd in interface ITagWorkerelement - the element nodecontext - the processor contextpublic boolean processContent(String content, ProcessorContext context)
ITagWorkerprocessContent in interface ITagWorkercontent - the content of a nodecontext - the processor contextpublic boolean processTagChild(ITagWorker childTagWorker, ProcessorContext context)
ITagWorkerprocessTagChild in interface ITagWorkerchildTagWorker - the tag worker of the child nodecontext - the processor contextpublic com.itextpdf.layout.IPropertyContainer getElementResult()
ITagWorkerIPropertyContainer instance.getElementResult in interface ITagWorkerIPropertyContainer.public String getDisplay()
IDisplayAwaregetDisplay in interface IDisplayAwareCopyright © 1998–2023 Apryse Group NV. All rights reserved.