Class Prompt.MultiSelect<T>
java.lang.Object
com.codename1.cli.Prompt.MultiSelect<T>
- Enclosing class:
Prompt
A multiple-choice list with options: labels, preselected choices,
limits.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiSelect(String question, List<T> choices) A multiple selection amongchoices. -
Method Summary
Modifier and TypeMethodDescriptionask()Asks and answers the choices made, in list order.filter(boolean on) Whether typing filters the list; on by default.labeler(Prompt.Labeler<T> labeler) How a choice is shown;String.valueOfby default.max(int count) The most choices the answer may have.min(int count) The fewest choices the answer may have.pageSize(int size) How many choices are shown at once; 10 by default.preselect(int... indexes) The choices selected when the list opens, by index.
-
Constructor Details
-
MultiSelect
-
-
Method Details
-
labeler
How a choice is shown;String.valueOfby default. -
preselect
The choices selected when the list opens, by index. -
pageSize
How many choices are shown at once; 10 by default. -
min
The fewest choices the answer may have. -
max
The most choices the answer may have. -
filter
Whether typing filters the list; on by default. -
ask
-