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 IConformanceLevel
conformanceLevel
Conformance level 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 Deprecated Methods Modifier and Type Method Description PdfAConformanceLevel
getConformanceLevel()
Deprecated.since 8.0.4 will returnIConformanceLevel
in next major releasePdfDocument
getDocument()
Gets document to be used for form field creation.java.lang.String
getFormFieldName()
Gets name of the form field.IConformanceLevel
getGenericConformanceLevel()
Deprecated.since 8.0.4 will be renamed to getConformanceLevel()protected abstract T
getThis()
Returns this builder object.T
setConformanceLevel(PdfAConformanceLevel conformanceLevel)
Deprecated.since 8.0.4 conformance level param will change toIConformanceLevel
T
setGenericConformanceLevel(IConformanceLevel conformanceLevel)
Deprecated.since 8.0.4 will be renamed to setConformanceLevel
-
-
-
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.
-
conformanceLevel
private IConformanceLevel conformanceLevel
Conformance level 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
-
getConformanceLevel
@Deprecated public PdfAConformanceLevel getConformanceLevel()
Deprecated.since 8.0.4 will returnIConformanceLevel
in next major releaseGets conformance level for form field creation.- Returns:
- instance of
PdfAConformanceLevel
to be used for form field creation
-
getGenericConformanceLevel
@Deprecated public IConformanceLevel getGenericConformanceLevel()
Deprecated.since 8.0.4 will be renamed to getConformanceLevel()Gets conformance level for form field creation.- Returns:
- instance of
IConformanceLevel
to be used for form field creation
-
setConformanceLevel
@Deprecated public T setConformanceLevel(PdfAConformanceLevel conformanceLevel)
Deprecated.since 8.0.4 conformance level param will change toIConformanceLevel
Sets conformance level for form field creation.- Parameters:
conformanceLevel
- instance ofPdfAConformanceLevel
to be used for form field creation- Returns:
- this builder
-
setGenericConformanceLevel
@Deprecated public T setGenericConformanceLevel(IConformanceLevel conformanceLevel)
Deprecated.since 8.0.4 will be renamed to setConformanceLevelSets conformance level for form field creation.- Parameters:
conformanceLevel
- Instance ofIConformanceLevel
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
-
-