Package com.itextpdf.forms.fields
Class CheckBoxFormFieldBuilder
- java.lang.Object
-
- com.itextpdf.forms.fields.FormFieldBuilder<T>
-
- com.itextpdf.forms.fields.TerminalFormFieldBuilder<CheckBoxFormFieldBuilder>
-
- com.itextpdf.forms.fields.CheckBoxFormFieldBuilder
-
public class CheckBoxFormFieldBuilder extends TerminalFormFieldBuilder<CheckBoxFormFieldBuilder>
Builder for checkbox form field.
-
-
Field Summary
Fields Modifier and Type Field Description private CheckBoxTypecheckType
-
Constructor Summary
Constructors Constructor Description CheckBoxFormFieldBuilder(PdfDocument document, java.lang.String formFieldName)Creates builder forPdfButtonFormFieldcreation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfButtonFormFieldcreateCheckBox()Creates checkbox form field based on provided parameters.CheckBoxTypegetCheckType()Gets check type for checkbox form field.protected CheckBoxFormFieldBuildergetThis()Returns this builder object.CheckBoxFormFieldBuildersetCheckType(CheckBoxType checkType)Sets check type for checkbox form field.-
Methods inherited from class com.itextpdf.forms.fields.TerminalFormFieldBuilder
getFont, getPage, getWidgetRectangle, setFont, setPage, setPage, setPageToField, setPageToField, setWidgetRectangle
-
Methods inherited from class com.itextpdf.forms.fields.FormFieldBuilder
getConformance, getDocument, getFormFieldName, setConformance
-
-
-
-
Field Detail
-
checkType
private CheckBoxType checkType
-
-
Constructor Detail
-
CheckBoxFormFieldBuilder
public CheckBoxFormFieldBuilder(PdfDocument document, java.lang.String formFieldName)
Creates builder forPdfButtonFormFieldcreation.- Parameters:
document- document to be used for form field creationformFieldName- name of the form field
-
-
Method Detail
-
getCheckType
public CheckBoxType getCheckType()
Gets check type for checkbox form field.- Returns:
- check type to be set for checkbox form field
-
setCheckType
public CheckBoxFormFieldBuilder setCheckType(CheckBoxType checkType)
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
public PdfButtonFormField createCheckBox()
Creates checkbox form field based on provided parameters.- Returns:
- new
PdfButtonFormFieldinstance
-
getThis
protected CheckBoxFormFieldBuilder getThis()
Returns this builder object. Required for superclass methods.- Specified by:
getThisin classFormFieldBuilder<CheckBoxFormFieldBuilder>- Returns:
- this builder
-
-