Class ButtonTagWorker

java.lang.Object
com.itextpdf.html2pdf.attach.impl.tags.DivTagWorker
com.itextpdf.html2pdf.attach.impl.tags.ButtonTagWorker
All Implemented Interfaces:
IDisplayAware, ITagWorker

public class ButtonTagWorker extends DivTagWorker
TagWorker class for a button element.
  • Constructor Details

    • ButtonTagWorker

      public ButtonTagWorker (com.itextpdf.styledxmlparser.node.IElementNode element, ProcessorContext context)
      Creates a new ButtonTagWorker instance.
      Parameters:
      element - the element
      context - the context
  • Method Details

    • processContent

      public boolean processContent (String content, ProcessorContext context)
      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 interface ITagWorker
      Overrides:
      processContent in class DivTagWorker
      Parameters:
      content - the content of a node
      context - the processor context
      Returns:
      true, if content was successfully processed, otherwise false.
    • processTagChild

      public boolean processTagChild (ITagWorker childTagWorker, ProcessorContext context)
      Description copied from interface: ITagWorker
      Placeholder for what needs to be done when a child node is being processed.
      Specified by:
      processTagChild in interface ITagWorker
      Overrides:
      processTagChild in class DivTagWorker
      Parameters:
      childTagWorker - the tag worker of the child node
      context - the processor context
      Returns:
      true, if child was successfully processed, otherwise false.
    • getElementResult

      public com.itextpdf.layout.IPropertyContainer getElementResult()
      Description copied from interface: ITagWorker
      Gets a processed object if it can be expressed as an IPropertyContainer instance.
      Specified by:
      getElementResult in interface ITagWorker
      Overrides:
      getElementResult in class DivTagWorker
      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.