Package com.pspdfkit.forms
Class ListBoxFormConfiguration.Builder
-
- All Implemented Interfaces:
public class ListBoxFormConfiguration.Builder extends FormElementConfiguration.BaseBuilder<V, B>
Builder used to construct ListBoxFormConfiguration instance.
-
-
Constructor Summary
Constructors Constructor Description ListBoxFormConfiguration.Builder(int pageIndex, RectF boundingBox)
Creates a new ListBoxFormConfiguration builder.
-
Method Summary
Modifier and Type Method Description ListBoxFormConfiguration.Builder
setFormOptions(@NonNull() List<FormOption> options)
Sets the list of options for the given choices of the form element. ListBoxFormConfiguration
build()
Creates a ListBoxFormConfiguration with the arguments supplied to this builder. ListBoxFormConfiguration.Builder
setSelectedIndexes(@NonNull() List<Integer> selectedIndexes)
Sets the list of indexes with a selected option. ListBoxFormConfiguration.Builder
setMultiSelectionEnabled(boolean enable)
Defines whether the multi selection should be enabled or not. -
-
Constructor Detail
-
ListBoxFormConfiguration.Builder
ListBoxFormConfiguration.Builder(int pageIndex, RectF boundingBox)
Creates a new ListBoxFormConfiguration builder.- Parameters:
pageIndex
- Page index where the checkbox form element will be attached.boundingBox
- Annotation bounding box of the widget annotation representing the appearance of the checkbox form element.
-
-
Method Detail
-
setFormOptions
ListBoxFormConfiguration.Builder setFormOptions(@NonNull() List<FormOption> options)
Sets the list of options for the given choices of the form element.
- Parameters:
options
- List of options for the given choices of the form element.
-
build
@NonNull() ListBoxFormConfiguration build()
Creates a ListBoxFormConfiguration with the arguments supplied to this builder.
- Returns:
Newly created configuration.
-
setSelectedIndexes
ListBoxFormConfiguration.Builder setSelectedIndexes(@NonNull() List<Integer> selectedIndexes)
Sets the list of indexes with a selected option.
- Parameters:
selectedIndexes
- List of indexes with a selected option.
-
setMultiSelectionEnabled
ListBoxFormConfiguration.Builder setMultiSelectionEnabled(boolean enable)
Defines whether the multi selection should be enabled or not. Multi selection is disabled by default.
- Parameters:
enable
-true
if multi selection should be enabled.
-
-
-
-