Package com.itextpdf.forms.fields
Class RadioFormFieldBuilder
java.lang.Object
com.itextpdf.forms.fields.FormFieldBuilder
com.itextpdf.forms.fields.TerminalFormFieldBuilder<RadioFormFieldBuilder>
com.itextpdf.forms.fields.RadioFormFieldBuilder
Builder for radio form field.
-
Constructor Summary
ConstructorDescriptionRadioFormFieldBuilder
(PdfDocument document, String radioGroupFormFieldName) Creates builder for radio form field creation. -
Method Summary
Modifier and TypeMethodDescriptioncreateRadioButton
(String appearanceName, Rectangle rectangle) Creates radio button form field instance based on provided parameters.Creates radio group form field instance based on provided parameters.protected RadioFormFieldBuilder
getThis()
Returns this builder object.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
getConformanceLevel, getDocument, getFormFieldName, setConformanceLevel
-
Constructor Details
-
RadioFormFieldBuilder
Creates builder for radio form field creation.- Parameters:
-
document
- document to be used for form field creation -
radioGroupFormFieldName
- name of the form field
-
-
Method Details
-
createRadioGroup
Creates radio group form field instance based on provided parameters.- Returns:
-
new
PdfButtonFormField
instance
-
createRadioButton
Creates radio button form field instance based on provided parameters.- Parameters:
-
appearanceName
- name of the "on" appearance state. -
rectangle
- the place where the widget should be placed. - Returns:
- new radio button instance
-
getThis
Returns this builder object. Required for superclass methods.- Specified by:
-
getThis
in classFormFieldBuilder<RadioFormFieldBuilder>
- Returns:
- this builder
-