java.lang.Object | ||
↳ | com.pspdfkit.forms.FormElement | |
↳ | com.pspdfkit.forms.ChoiceFormElement |
![]() |
Represents a choice form control in a PDF form.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ChoiceFormField |
getFormField()
Retrieve parent form field.
| ||||||||||
List<FormOption> |
getOptions()
Retrieve the list of options that should be presented to the user.
| ||||||||||
List<Integer> |
getSelectedIndexes()
Returns list of indexes of the selected options.
| ||||||||||
boolean |
isCommitOnSelectionChangeEnabled()
When set, don't wait for the focus to exit the control, but immediately commit actions.
| ||||||||||
boolean |
isMultiSelectEnabled()
Check whether more than one of the element's options may be selected simultaneously.
| ||||||||||
void |
setOptions(List<FormOption> options)
Sets the options for the given choice form element.
| ||||||||||
void |
setSelectedIndexes(List<Integer> selectedIndexes)
Sets selected options indexes.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EnumSet<NativeFormChoiceFlags> | getChoiceFlags() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Retrieve parent form field.
Retrieve the list of options that should be presented to the user.
Returns list of indexes of the selected options.
When set, don't wait for the focus to exit the control, but immediately commit actions.
Check whether more than one of the element's options may be selected simultaneously.
true
when multi selection is enabled for the element.
Sets the options for the given choice form element. This WILL change the options in the PDF file.
options | List of entries for form options. |
---|
Sets selected options indexes.
selectedIndexes | List of selected options indexes. |
---|