Package com.itextpdf.forms.fields
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
Builder for terminal form field.
-
Constructor Summary
ModifierConstructorDescriptionprotected
TerminalFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder for terminal form field creation. -
Method Summary
Modifier and TypeMethodDescriptionint
getPage()
Gets page to be used for widget creation.Gets rectangle which defines widget's placement.setPage
(int page) Sets page to be used for widget creation.Sets page to be used for widget creation.setWidgetRectangle
(Rectangle widgetRectangle) Sets rectangle which defines widget's placement.Methods inherited from class com.itextpdf.forms.fields.FormFieldBuilder
getConformanceLevel, getDocument, getFormFieldName, getThis, setConformanceLevel
-
Constructor Details
-
TerminalFormFieldBuilder
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
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
Sets page to be used for widget creation.- Parameters:
-
page
- instance ofPdfPage
. Shall belong to already providedPdfDocument
- Returns:
- this builder
-
setPage
Sets page to be used for widget creation.- Parameters:
-
page
- number of page to place widget at - Returns:
- this builder
-
setWidgetRectangle
Sets rectangle which defines widget's placement.- Parameters:
-
widgetRectangle
- instance ofRectangle
for widget placement - Returns:
- this builder
-