Class TerminalFormFieldBuilder>

java.lang.Object
com.itextpdf.forms.fields.FormFieldBuilder
com.itextpdf.forms.fields.TerminalFormFieldBuilder
Type Parameters:
T - specific terminal form field builder which extends this class.
Direct Known Subclasses:
CheckBoxFormFieldBuilder, ChoiceFormFieldBuilder, PushButtonFormFieldBuilder, RadioFormFieldBuilder, SignatureFormFieldBuilder, TextFormFieldBuilder

public abstract class TerminalFormFieldBuilder> extends FormFieldBuilder
Builder for terminal form field.
  • Constructor Details

    • TerminalFormFieldBuilder

      protected TerminalFormFieldBuilder (PdfDocument document, String formFieldName)
      Creates builder for terminal form field creation.
      Parameters:
      document - document to be used for form field creation
      formFieldName - name of the form field
  • Method Details

    • getWidgetRectangle

      public Rectangle getWidgetRectangle()
      Gets rectangle which defines widget's placement.
      Returns:
      instance of Rectangle for widget placement
    • getPage

      public int getPage()
      Gets page to be used for widget creation.
      Returns:
      number of page to place widget at
    • setPage

      public T setPage (PdfPage page)
      Sets page to be used for widget creation.
      Parameters:
      page - instance of PdfPage. Shall belong to already provided PdfDocument
      Returns:
      this builder
    • setPage

      public T setPage (int page)
      Sets page to be used for widget creation.
      Parameters:
      page - number of page to place widget at
      Returns:
      this builder
    • setWidgetRectangle

      public T setWidgetRectangle (Rectangle widgetRectangle)
      Sets rectangle which defines widget's placement.
      Parameters:
      widgetRectangle - instance of Rectangle for widget placement
      Returns:
      this builder
    • setFont

      public T setFont (PdfFont font)
      Set font to be used for form field creation.
      Parameters:
      font - instance of PdfFont.
      Returns:
      this builder
    • getFont

      public PdfFont getFont()
      Get font to be used for form field creation.
      Returns:
      instance of PdfFont.