Package com.itextpdf.forms.fields
Class PushButtonFormFieldBuilder
java.lang.Object
com.itextpdf.forms.fields.FormFieldBuilder
com.itextpdf.forms.fields.TerminalFormFieldBuilder<PushButtonFormFieldBuilder>
com.itextpdf.forms.fields.PushButtonFormFieldBuilder
public class PushButtonFormFieldBuilder extends TerminalFormFieldBuilder<PushButtonFormFieldBuilder>
Builder for push button form field.
-
Constructor Summary
ConstructorDescriptionPushButtonFormFieldBuilder
(PdfDocument document, String formFieldName) Creates builder forPdfButtonFormField
creation. -
Method Summary
Modifier and TypeMethodDescriptionCreates push button form field base on provided parameters.Gets caption for button form field creation.protected PushButtonFormFieldBuilder
getThis()
Returns this builder object.setCaption
(String caption) Sets caption for button form field creation.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
-
PushButtonFormFieldBuilder
Creates builder forPdfButtonFormField
creation.- Parameters:
-
document
- document to be used for form field creation -
formFieldName
- name of the form field
-
-
Method Details
-
getCaption
Gets caption for button form field creation.- Returns:
- caption value to be used for form field creation
-
setCaption
Sets caption for button form field creation.- Parameters:
-
caption
- caption value to be used for form field creation - Returns:
- this builder
-
createPushButton
Creates push button form field base on provided parameters.- Returns:
-
new
PdfButtonFormField
instance
-
getThis
Returns this builder object. Required for superclass methods.- Specified by:
-
getThis
in classFormFieldBuilder<PushButtonFormFieldBuilder>
- Returns:
- this builder
-