Package com.pspdfkit.forms
Class ListBoxFormConfiguration
-
- All Implemented Interfaces:
public class ListBoxFormConfiguration extends FormElementConfiguration<T, K>
Configuration class of ListBoxFormElement for the creation of a ListBoxFormField using addFormElementToPage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ListBoxFormConfiguration.Builder
Builder used to construct ListBoxFormConfiguration instance.
-
Field Summary
Fields Modifier and Type Field Description public final List<Integer>
selectedIndexes
public final List<FormOption>
options
-
Method Summary
Modifier and Type Method Description List<Integer>
getSelectedIndexes()
Gets the list of indexes with a selected option. List<FormOption>
getOptions()
Gets the list of options for the given choices of the form element. boolean
isMultiSelectionEnabled()
Returns true
when multi selection is enabled,false
otherwise.-
-
Method Detail
-
getSelectedIndexes
@Nullable() List<Integer> getSelectedIndexes()
Gets the list of indexes with a selected option. May return
null
.- Returns:
List of indexes with a selected option.
-
getOptions
@Nullable() List<FormOption> getOptions()
Gets the list of options for the given choices of the form element. May return
null
.- Returns:
List of options for the given choices of the form element.
-
isMultiSelectionEnabled
boolean isMultiSelectionEnabled()
Returns
true
when multi selection is enabled,false
otherwise.- Returns:
true
when multi selection is enabled.
-
-
-
-