public class ChoiceFormFieldBuilder extends TerminalFormFieldBuilder<ChoiceFormFieldBuilder>
| Constructor and Description |
|---|
ChoiceFormFieldBuilder(PdfDocument document,
String formFieldName)
Creates builder for
PdfChoiceFormField creation. |
| Modifier and Type | Method and Description |
|---|---|
PdfChoiceFormField |
createComboBox()
Creates combobox form field base on provided parameters.
|
PdfChoiceFormField |
createList()
Creates list form field based on provided parameters.
|
PdfArray |
getOptions()
Gets options for choice form field.
|
protected ChoiceFormFieldBuilder |
getThis()
Returns this builder object.
|
ChoiceFormFieldBuilder |
setOptions(PdfArray options)
Sets options for choice form field.
|
ChoiceFormFieldBuilder |
setOptions(String[] options)
Sets options for choice form field.
|
ChoiceFormFieldBuilder |
setOptions(String[][] options)
Sets options for choice form field.
|
getPage, getWidgetRectangle, setPage, setPage, setWidgetRectanglegetConformanceLevel, getDocument, getFormFieldName, setConformanceLevelpublic ChoiceFormFieldBuilder(PdfDocument document, String formFieldName)
PdfChoiceFormField creation.document - document to be used for form field creationformFieldName - name of the form fieldpublic PdfArray getOptions()
PdfArray of choice form field optionspublic ChoiceFormFieldBuilder setOptions(PdfArray options)
options - PdfArray of choice form field optionspublic ChoiceFormFieldBuilder setOptions(String[] options)
options - array of String optionspublic ChoiceFormFieldBuilder setOptions(String[][] options)
options - two-dimensional array of String options. Every inner array shall have two elements.public PdfChoiceFormField createList()
PdfChoiceFormField instancepublic PdfChoiceFormField createComboBox()
PdfChoiceFormField instanceprotected ChoiceFormFieldBuilder getThis()
getThis in class FormFieldBuilder<ChoiceFormFieldBuilder>Copyright © 1998–2023 Apryse Group NV. All rights reserved.