public class SpanTagWorker extends Object implements ITagWorker, IDisplayAware
span
tag.
Constructor and Description |
---|
SpanTagWorker(com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context)
Creates a new SpanTagWorker instance.
|
Modifier and Type | Method and Description |
---|---|
List |
getAllElements()
Gets all the elements in the span.
|
String |
getDisplay()
Gets the display value.
|
com.itextpdf.layout.IPropertyContainer |
getElementResult()
Gets a processed object if it can be expressed as an IPropertyContainer instance.
|
List |
getOwnLeafElements()
Gets the span's own leaf elements.
|
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.
|
public SpanTagWorker(com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context)
SpanTagWorker
instance.
element
- the element
context
- the processor context
public void processEnd(com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context)
ITagWorker
processEnd
in interface ITagWorker
element
- the element node
context
- the processor context
public boolean processContent(String content, ProcessorContext context)
ITagWorker
processContent
in interface ITagWorker
content
- the content of a node
context
- the processor context
public boolean processTagChild(ITagWorker childTagWorker, ProcessorContext context)
ITagWorker
processTagChild
in interface ITagWorker
childTagWorker
- the tag worker of the child node
context
- the processor context
public ListgetAllElements()
public ListgetOwnLeafElements()
public com.itextpdf.layout.IPropertyContainer getElementResult()
ITagWorker
IPropertyContainer
instance.
getElementResult
in interface ITagWorker
IPropertyContainer
.
public String getDisplay()
IDisplayAware
getDisplay
in interface IDisplayAware
Copyright © 1998–2019 iText Group NV. All rights reserved.