Class Prompt.Select<T>
java.lang.Object
com.codename1.cli.Prompt.Select<T>
- Enclosing class:
Prompt
A single-choice list with options: labels, a default, page size,
filtering.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionask()Asks and answers the choice made.defaultIndex(int index) The choice the cursor starts on.filter(boolean on) Whether typing filters the list; on by default.labeler(Prompt.Labeler<T> labeler) How a choice is shown;String.valueOfby default.pageSize(int size) How many choices are shown at once; 10 by default.
-
Constructor Details
-
Select
-
-
Method Details
-
labeler
How a choice is shown;String.valueOfby default. -
defaultIndex
The choice the cursor starts on. -
pageSize
How many choices are shown at once; 10 by default. -
filter
Whether typing filters the list; on by default. -
ask
Asks and answers the choice made.
Throws
IllegalArgumentException: when there are no choices.
-