pdfHTML 5.0.5 API
iText.Html2pdf.Attach.Impl.Tags.DivTagWorker Class Reference

TagWorker class for the div element. More...

Inheritance diagram for iText.Html2pdf.Attach.Impl.Tags.DivTagWorker:
iText.Html2pdf.Attach.ITagWorker iText.Html2pdf.Attach.Impl.Tags.IDisplayAware iText.Html2pdf.Attach.Impl.Tags.ABlockTagWorker iText.Html2pdf.Attach.Impl.Tags.BodyTagWorker iText.Html2pdf.Attach.Impl.Tags.ButtonTagWorker iText.Html2pdf.Attach.Impl.Tags.CaptionTagWorker iText.Html2pdf.Attach.Impl.Tags.DisplayGridTagWorker iText.Html2pdf.Attach.Impl.Tags.HrTagWorker iText.Html2pdf.Attach.Impl.Tags.HTagWorker iText.Html2pdf.Attach.Impl.Tags.OptGroupTagWorker iText.Html2pdf.Attach.Impl.Tags.OptionTagWorker iText.Html2pdf.Attach.Impl.Tags.PageMarginBoxWorker iText.Html2pdf.Attach.Impl.Tags.PreTagWorker

Public Member Functions

  DivTagWorker (IElementNode element, ProcessorContext context)
  Creates a new DivTagWorker 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 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...
 

Package Functions

  DivTagWorker (IElementNode element, ProcessorContext context, Div container)
  Creates a new DivTagWorker instance. More...
 
virtual bool  AddBlockChild (IElement element)
  Adds a child element to the div block. More...
 
virtual void  PostProcessInlineGroup ()
  Post-processes the hanging leaves of the waiting inline elements. More...
 

Package Attributes

MulticolContainer  multicolContainer
  Column container element. More...
 

Detailed Description

TagWorker class for the div element.

Constructor & Destructor Documentation

◆ DivTagWorker() [1/2]

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

Creates a new DivTagWorker instance.

Parameters
element the element
context the context

◆ DivTagWorker() [2/2]

iText.Html2pdf.Attach.Impl.Tags.DivTagWorker.DivTagWorker ( IElementNode  element,
ProcessorContext  context,
Div  container 
)
inlinepackage

Creates a new DivTagWorker instance.

Parameters
element the element
context the context
container div element container

Member Function Documentation

◆ AddBlockChild()

virtual bool iText.Html2pdf.Attach.Impl.Tags.DivTagWorker.AddBlockChild ( IElement  element )
inlinepackagevirtual

Adds a child element to the div block.

Parameters
element the element
Returns
true, if successful

◆ GetDisplay()

virtual String iText.Html2pdf.Attach.Impl.Tags.DivTagWorker.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.DivTagWorker.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.BodyTagWorker, iText.Html2pdf.Attach.Impl.Tags.ButtonTagWorker, iText.Html2pdf.Attach.Impl.Tags.PageMarginBoxWorker, and iText.Html2pdf.Attach.Impl.Tags.HrTagWorker.

◆ PostProcessInlineGroup()

virtual void iText.Html2pdf.Attach.Impl.Tags.DivTagWorker.PostProcessInlineGroup ( )
inlinepackagevirtual

Post-processes the hanging leaves of the waiting inline elements.

◆ ProcessContent()

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

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

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

Implements iText.Html2pdf.Attach.ITagWorker.

Reimplemented in iText.Html2pdf.Attach.Impl.Tags.BodyTagWorker, iText.Html2pdf.Attach.Impl.Tags.OptionTagWorker, iText.Html2pdf.Attach.Impl.Tags.ButtonTagWorker, iText.Html2pdf.Attach.Impl.Tags.OptGroupTagWorker, and iText.Html2pdf.Attach.Impl.Tags.PreTagWorker.

◆ ProcessEnd()

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

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

Parameters
element the element node
context the processor context

Implements iText.Html2pdf.Attach.ITagWorker.

Reimplemented in iText.Html2pdf.Attach.Impl.Tags.BodyTagWorker, iText.Html2pdf.Attach.Impl.Tags.OptionTagWorker, iText.Html2pdf.Attach.Impl.Tags.ABlockTagWorker, iText.Html2pdf.Attach.Impl.Tags.PageMarginBoxWorker, and iText.Html2pdf.Attach.Impl.Tags.HTagWorker.

◆ ProcessTagChild()

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

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

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

Implements iText.Html2pdf.Attach.ITagWorker.

Reimplemented in iText.Html2pdf.Attach.Impl.Tags.OptionTagWorker, iText.Html2pdf.Attach.Impl.Tags.BodyTagWorker, iText.Html2pdf.Attach.Impl.Tags.ButtonTagWorker, iText.Html2pdf.Attach.Impl.Tags.OptGroupTagWorker, iText.Html2pdf.Attach.Impl.Tags.PreTagWorker, and iText.Html2pdf.Attach.Impl.Tags.DisplayGridTagWorker.

Member Data Documentation

◆ multicolContainer

MulticolContainer iText.Html2pdf.Attach.Impl.Tags.DivTagWorker.multicolContainer
package

Column container element.