public class HtmlTagWorker extends Object implements ITagWorker
html element.| Constructor and Description |
|---|
HtmlTagWorker(com.itextpdf.styledxmlparser.node.IElementNode element,
ProcessorContext context)
Creates a new
HtmlTagWorker instance. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
processPageRules(com.itextpdf.styledxmlparser.node.INode rootNode,
com.itextpdf.styledxmlparser.css.ICssResolver cssResolver,
ProcessorContext context)
Processes the page rules.
|
boolean |
processTagChild(ITagWorker childTagWorker,
ProcessorContext context)
Placeholder for what needs to be done when a child node is being processed.
|
public HtmlTagWorker(com.itextpdf.styledxmlparser.node.IElementNode element,
ProcessorContext context)
HtmlTagWorker 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 void processPageRules(com.itextpdf.styledxmlparser.node.INode rootNode,
com.itextpdf.styledxmlparser.css.ICssResolver cssResolver,
ProcessorContext context)
rootNode - the root nodecssResolver - the css resolvercontext - the contextCopyright © 1998–2019 iText Group NV. All rights reserved.