Class SpanTagWorker
java.lang.Object
com.itextpdf.html2pdf.attach.impl.tags.SpanTagWorker
- All Implemented Interfaces:
-
IDisplayAware
,ITagWorker
- Direct Known Subclasses:
-
AbbrTagWorker
,ATagWorker
,PageCountWorker
TagWorker class for the
span
tag.
-
Constructor Summary
ConstructorDescriptionSpanTagWorker
(com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context) Creates a newSpanTagWorker
instance. -
Method Summary
Modifier and TypeMethodDescriptionGets all the elements in the span.Gets the display value.com.itextpdf.layout.IPropertyContainer
Gets a processed object if it can be expressed as anIPropertyContainer
instance.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.
-
Constructor Details
-
SpanTagWorker
public SpanTagWorker(com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context) Creates a newSpanTagWorker
instance.- Parameters:
-
element
- the element -
context
- the processor context
-
-
Method Details
-
processEnd
public void processEnd(com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context) Description copied from interface:ITagWorker
Placeholder for what needs to be done after the content of a tag has been processed.- Specified by:
-
processEnd
in interfaceITagWorker
- Parameters:
-
element
- the element node -
context
- the processor context
-
processContent
Description copied from interface:ITagWorker
Placeholder for what needs to be done while the content of a tag is being processed.- Specified by:
-
processContent
in interfaceITagWorker
- Parameters:
-
content
- the content of a node -
context
- the processor context - Returns:
- true, if content was successfully processed, otherwise false.
-
processTagChild
Description copied from interface:ITagWorker
Placeholder for what needs to be done when a child node is being processed.- Specified by:
-
processTagChild
in interfaceITagWorker
- Parameters:
-
childTagWorker
- the tag worker of the child node -
context
- the processor context - Returns:
- true, if child was successfully processed, otherwise false.
-
getAllElements
Gets all the elements in the span.- Returns:
- a list of elements
-
getOwnLeafElements
Gets the span's own leaf elements.- Returns:
- the own leaf elements
-
getElementResult
public com.itextpdf.layout.IPropertyContainer getElementResult()Description copied from interface:ITagWorker
Gets a processed object if it can be expressed as anIPropertyContainer
instance.- Specified by:
-
getElementResult
in interfaceITagWorker
- Returns:
-
the same object on every call. Might return null either if result is not yet produced or if this particular tag worker doesn't produce result in a form of
IPropertyContainer
.
-
getDisplay
Description copied from interface:IDisplayAware
Gets the display value.- Specified by:
-
getDisplay
in interfaceIDisplayAware
- Returns:
- the display value
-