-
Creates combobox form field base on provided parameters.
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.
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.
Sets the selected items in the field.
Highlights the options and generates field appearance if needed.
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.
If true, text entered in the field shall be spell-checked.
Sets the index of the first visible option in a scrollable list.