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
Builder for form field.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PdfConformance
Conformance of the form field.private final PdfDocument
Document to be used for form field creation.private final String
Name of the form field. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfFormField
creation. -
Method Summary
Modifier and TypeMethodDescriptionGets conformance for form field creation.Gets document to be used for form field creation.Gets name of the form field.protected abstract T
getThis()
Returns this builder object.setConformance
(PdfConformance conformance) Sets conformance for form field creation.
-
Field Details
-
document
Document to be used for form field creation. -
formFieldName
Name of the form field. -
conformance
Conformance of the form field.
-
-
Constructor Details
-
FormFieldBuilder
Creates builder forPdfFormField
creation.- Parameters:
document
- document to be used for form field creationformFieldName
- name of the form field
-
-
Method Details
-
getDocument
Gets document to be used for form field creation.- Returns:
PdfDocument
instance
-
getFormFieldName
Gets name of the form field.- Returns:
- name to be used for form field creation
-
getConformance
Gets conformance for form field creation.- Returns:
- instance of
PdfConformance
to be used for form field creation
-
setConformance
Sets conformance for form field creation.- Parameters:
conformance
- Instance ofPdfConformance
to be used for form field creation.- Returns:
- this builder
-
getThis
Returns this builder object. Required for superclass methods.- Returns:
- this builder
-