pdfHTML 2.1.6 API
iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker Class Reference

TagWorker class for the span tag. More...

Inheritance diagram for iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker:
iText.Html2pdf.Attach.ITagWorker iText.Html2pdf.Attach.Impl.Tags.IDisplayAware iText.Html2pdf.Attach.Impl.Tags.AbbrTagWorker iText.Html2pdf.Attach.Impl.Tags.ATagWorker iText.Html2pdf.Attach.Impl.Tags.PageCountWorker

Public Member Functions

 SpanTagWorker (IElementNode element, ProcessorContext context)
 Creates a new SpanTagWorker instance. More...
 
virtual void ProcessEnd (IElementNode element, ProcessorContext context)
 Placeholder for what needs to be done after the content of a tag has been processed. More...
 
virtual bool ProcessContent (String content, ProcessorContext context)
 Placeholder for what needs to be done while the content of a tag is being processed. More...
 
virtual bool ProcessTagChild (ITagWorker childTagWorker, ProcessorContext context)
 Placeholder for what needs to be done when a child node is being processed. More...
 
virtual IList< IPropertyContainer > GetAllElements ()
 Gets all the elements in the span. More...
 
virtual IList< IPropertyContainer > GetOwnLeafElements ()
 Gets the span's own leaf elements. More...
 
virtual IPropertyContainer GetElementResult ()
 Gets a processed object if it can be expressed as an iText.Layout.IPropertyContainer instance. More...
 
virtual String GetDisplay ()
 Gets the display value. More...
 

Detailed Description

TagWorker class for the span tag.

Constructor & Destructor Documentation

◆ SpanTagWorker()

iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker.SpanTagWorker ( IElementNode  element,
ProcessorContext  context 
)
inline

Creates a new SpanTagWorker instance.

Parameters
elementthe element
contextthe processor context

Member Function Documentation

◆ GetAllElements()

virtual IList<IPropertyContainer> iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker.GetAllElements ( )
inlinevirtual

Gets all the elements in the span.

Returns
a list of elements

◆ GetDisplay()

virtual String iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker.GetDisplay ( )
inlinevirtual

Gets the display value.

Returns
the display value

Implements iText.Html2pdf.Attach.Impl.Tags.IDisplayAware.

◆ GetElementResult()

virtual IPropertyContainer iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker.GetElementResult ( )
inlinevirtual

Gets a processed object if it can be expressed as an iText.Layout.IPropertyContainer instance.

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 iText.Layout.IPropertyContainer.

Implements iText.Html2pdf.Attach.ITagWorker.

Reimplemented in iText.Html2pdf.Attach.Impl.Tags.PageCountWorker.

◆ GetOwnLeafElements()

virtual IList<IPropertyContainer> iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker.GetOwnLeafElements ( )
inlinevirtual

Gets the span's own leaf elements.

Returns
the own leaf elements

◆ ProcessContent()

virtual bool iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker.ProcessContent ( String  content,
ProcessorContext  context 
)
inlinevirtual

Placeholder for what needs to be done while the content of a tag is being processed.

Parameters
contentthe content of a node
contextthe processor context
Returns
true, if content was successfully processed, otherwise false.

Implements iText.Html2pdf.Attach.ITagWorker.

Reimplemented in iText.Html2pdf.Attach.Impl.Tags.AbbrTagWorker.

◆ ProcessEnd()

virtual void iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker.ProcessEnd ( IElementNode  element,
ProcessorContext  context 
)
inlinevirtual

Placeholder for what needs to be done after the content of a tag has been processed.

Parameters
elementthe element node
contextthe processor context

Implements iText.Html2pdf.Attach.ITagWorker.

Reimplemented in iText.Html2pdf.Attach.Impl.Tags.AbbrTagWorker, iText.Html2pdf.Attach.Impl.Tags.ATagWorker, and iText.Html2pdf.Attach.Impl.Tags.PageCountWorker.

◆ ProcessTagChild()

virtual bool iText.Html2pdf.Attach.Impl.Tags.SpanTagWorker.ProcessTagChild ( ITagWorker  childTagWorker,
ProcessorContext  context 
)
inlinevirtual

Placeholder for what needs to be done when a child node is being processed.

Parameters
childTagWorkerthe tag worker of the child node
contextthe processor context
Returns
true, if child was successfully processed, otherwise false.

Implements iText.Html2pdf.Attach.ITagWorker.