Package com.itextpdf.forms.fields
Class FormFieldBuilder<T extends FormFieldBuilder<T>>
- java.lang.Object
-
- com.itextpdf.forms.fields.FormFieldBuilder<T>
-
- Type Parameters:
T
- specific form field builder which extends this class.
- Direct Known Subclasses:
NonTerminalFormFieldBuilder
,TerminalFormFieldBuilder
public abstract class FormFieldBuilder<T extends FormFieldBuilder<T>> extends java.lang.Object
Builder for form field.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfConformance
conformance
Conformance of the form field.private PdfDocument
document
Document to be used for form field creation.private java.lang.String
formFieldName
Name of the form field.
-
Constructor Summary
Constructors Modifier Constructor Description protected
FormFieldBuilder(PdfDocument document, java.lang.String formFieldName)
Creates builder forPdfFormField
creation.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PdfConformance
getConformance()
Gets conformance for form field creation.PdfDocument
getDocument()
Gets document to be used for form field creation.java.lang.String
getFormFieldName()
Gets name of the form field.protected abstract T
getThis()
Returns this builder object.T
setConformance(PdfConformance conformance)
Sets conformance for form field creation.
-
-
-
Field Detail
-
document
private final PdfDocument document
Document to be used for form field creation.
-
formFieldName
private final java.lang.String formFieldName
Name of the form field.
-
conformance
private PdfConformance conformance
Conformance of the form field.
-
-
Constructor Detail
-
FormFieldBuilder
protected FormFieldBuilder(PdfDocument document, java.lang.String formFieldName)
Creates builder forPdfFormField
creation.- Parameters:
document
- document to be used for form field creationformFieldName
- name of the form field
-
-
Method Detail
-
getDocument
public PdfDocument getDocument()
Gets document to be used for form field creation.- Returns:
PdfDocument
instance
-
getFormFieldName
public java.lang.String getFormFieldName()
Gets name of the form field.- Returns:
- name to be used for form field creation
-
getConformance
public PdfConformance getConformance()
Gets conformance for form field creation.- Returns:
- instance of
PdfConformance
to be used for form field creation
-
setConformance
public T setConformance(PdfConformance conformance)
Sets conformance for form field creation.- Parameters:
conformance
- Instance ofPdfConformance
to be used for form field creation.- Returns:
- this builder
-
getThis
protected abstract T getThis()
Returns this builder object. Required for superclass methods.- Returns:
- this builder
-
-