Package com.itextpdf.forms.fields
Class CheckBoxFormFieldBuilder
java.lang.Object
com.itextpdf.forms.fields.FormFieldBuilder
com.itextpdf.forms.fields.TerminalFormFieldBuilder<CheckBoxFormFieldBuilder>
com.itextpdf.forms.fields.CheckBoxFormFieldBuilder
Builder for checkbox form field.
-
Constructor Summary
ConstructorDescriptionCheckBoxFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfButtonFormField
creation. -
Method Summary
Modifier and TypeMethodDescriptionCreates checkbox form field based on provided parameters.Gets check type for checkbox form field.protected CheckBoxFormFieldBuilder
getThis()
Returns this builder object.setCheckType
(CheckBoxType checkType) Sets check type for checkbox form field.Methods inherited from class com.itextpdf.forms.fields.TerminalFormFieldBuilder
getFont, getPage, getWidgetRectangle, setFont, setPage, setPage, setWidgetRectangle
Methods inherited from class com.itextpdf.forms.fields.FormFieldBuilder
getConformance, getDocument, getFormFieldName, setConformance
-
Constructor Details
-
CheckBoxFormFieldBuilder
Creates builder forPdfButtonFormField
creation.- Parameters:
-
document
- document to be used for form field creation -
formFieldName
- name of the form field
-
-
Method Details
-
getCheckType
Gets check type for checkbox form field.- Returns:
- check type to be set for checkbox form field
-
setCheckType
Sets check type for checkbox form field. Default value isCheckBoxType.CROSS
.- Parameters:
-
checkType
- check type to be set for checkbox form field - Returns:
- this builder
-
createCheckBox
Creates checkbox form field based on provided parameters.- Returns:
-
new
PdfButtonFormField
instance
-
getThis
Returns this builder object. Required for superclass methods.- Specified by:
-
getThis
in classFormFieldBuilder<CheckBoxFormFieldBuilder>
- Returns:
- this builder
-