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
ConstructorsConstructorDescriptionCheckBoxFormFieldBuilder(PdfDocument document, String formFieldName) Creates builder forPdfButtonFormFieldcreation. -
Method Summary
Modifier and TypeMethodDescriptionCreates checkbox form field based on provided parameters.Gets check type for checkbox form field.protected CheckBoxFormFieldBuildergetThis()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, setWidgetRectangleMethods inherited from class com.itextpdf.forms.fields.FormFieldBuilder
getConformance, getDocument, getFormFieldName, setConformance
-
Constructor Details
-
CheckBoxFormFieldBuilder
Creates builder forPdfButtonFormFieldcreation.- 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
PdfButtonFormFieldinstance
-
getThis
Returns this builder object. Required for superclass methods.- Specified by:
-
getThisin classFormFieldBuilder<CheckBoxFormFieldBuilder> - Returns:
- this builder
-