Package org.jline.consoleui.prompt
Class AbstractPrompt.ListChoicePrompt<T extends ListItemIF>
java.lang.Object
org.jline.consoleui.prompt.AbstractPrompt<T>
org.jline.consoleui.prompt.AbstractPrompt.ListChoicePrompt<T>
- Enclosing class:
AbstractPrompt<T extends ConsoleUIItemIF>
protected static class AbstractPrompt.ListChoicePrompt<T extends ListItemIF>
extends AbstractPrompt<T>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jline.consoleui.prompt.AbstractPrompt
AbstractPrompt.CheckboxPrompt, AbstractPrompt.ConfirmPrompt, AbstractPrompt.ExpandableChoiceException, AbstractPrompt.ExpandableChoicePrompt, AbstractPrompt.InputValuePrompt, AbstractPrompt.ListChoicePrompt<T extends ListItemIF>
-
Field Summary
FieldsFields inherited from class org.jline.consoleui.prompt.AbstractPrompt
bindingReader, config, DEFAULT_TIMEOUT_WITH_ESC, firstItemRow, terminal
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ListChoicePrompt
(Terminal terminal, List<AttributedString> header, AttributedString message, List<T> listItems, int pageSize, ConsolePrompt.UiConfig cfg) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
execute()
static <T extends ListItemIF>
AbstractPrompt.ListChoicePrompt<T> getPrompt
(Terminal terminal, List<AttributedString> header, AttributedString message, List<T> listItems, int pageSize, ConsolePrompt.UiConfig cfg) Methods inherited from class org.jline.consoleui.prompt.AbstractPrompt
refreshDisplay, refreshDisplay, refreshDisplay, refreshDisplay, resetDisplay, resetHeader
-
Field Details
-
items
-
-
Constructor Details
-
ListChoicePrompt
private ListChoicePrompt(Terminal terminal, List<AttributedString> header, AttributedString message, List<T> listItems, int pageSize, ConsolePrompt.UiConfig cfg)
-
-
Method Details
-
getPrompt
public static <T extends ListItemIF> AbstractPrompt.ListChoicePrompt<T> getPrompt(Terminal terminal, List<AttributedString> header, AttributedString message, List<T> listItems, int pageSize, ConsolePrompt.UiConfig cfg) -
bindKeys
-
execute
-