Uses of Class
com.itextpdf.forms.fields.PdfChoiceFormField
-
Uses of PdfChoiceFormField in com.itextpdf.forms.fields
Modifier and TypeMethodDescriptionstatic PdfChoiceFormField
PdfFormCreator.createChoiceFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a choice form field as a parent of aPdfWidgetAnnotation
using provided factory.static PdfChoiceFormField
PdfFormCreator.createChoiceFormField
(PdfDictionary dictionary) Creates a choice form field as a wrapper object around aPdfDictionary
using provided factory.static PdfChoiceFormField
PdfFormCreator.createChoiceFormField
(PdfDocument document) Create a minimal, emptyPdfChoiceFormField
using provided factory.PdfFormFactory.createChoiceFormField
(PdfWidgetAnnotation widget, PdfDocument document) Creates a choice form field as a parent of aPdfWidgetAnnotation
.PdfFormFactory.createChoiceFormField
(PdfDictionary dictionary) Creates a choice form field as a wrapper object around aPdfDictionary
.PdfFormFactory.createChoiceFormField
(PdfDocument document) Create a minimal, emptyPdfChoiceFormField
.ChoiceFormFieldBuilder.createComboBox()
Creates combobox form field base on provided parameters.ChoiceFormFieldBuilder.createList()
Creates list form field based on provided parameters.PdfChoiceFormField.setCombo
(boolean combo) If true, the field is a combo box; if false, the field is a list box.PdfChoiceFormField.setCommitOnSelChange
(boolean commitOnSelChange) If true, the new value shall be committed as soon as a selection is made (commonly with the pointing device).PdfChoiceFormField.setEdit
(boolean edit) If true, the combo box shall include an editable text box as well as a drop-down list; if false, it shall include only a drop-down list.PdfChoiceFormField.setIndices
(PdfArray indices) Sets the selected items in the field.PdfChoiceFormField.setListSelected
(int[] optionNumbers) Highlights the options.PdfChoiceFormField.setListSelected
(String[] optionValues) Highlights the options.PdfChoiceFormField.setListSelected
(String[] optionValues, boolean generateAppearance) Highlights the options and generates field appearance if needed.PdfChoiceFormField.setMultiSelect
(boolean multiSelect) If true, more than one of the field's option items may be selected simultaneously; if false, at most one item shall be selected.PdfChoiceFormField.setSort
(boolean sort) If true, the field's option items shall be sorted alphabetically.PdfChoiceFormField.setSpellCheck
(boolean spellCheck) If true, text entered in the field shall be spell-checked.PdfChoiceFormField.setTopIndex
(int index) Sets the index of the first visible option in a scrollable list.