Package org.jline.consoleui.prompt
Class AbstractPrompt<T extends ConsoleUIItemIF>
java.lang.Object
org.jline.consoleui.prompt.AbstractPrompt<T>
- Direct Known Subclasses:
AbstractPrompt.CheckboxPrompt,AbstractPrompt.ConfirmPrompt,AbstractPrompt.ExpandableChoicePrompt,AbstractPrompt.InputValuePrompt,AbstractPrompt.ListChoicePrompt
Classes for all prompt implementations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classAbstractPrompt.ListChoicePrompt<T extends ListItemIF> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.jline.keymap.BindingReaderprotected final ConsolePrompt.UiConfigprotected intprotected final org.jline.terminal.Terminal -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPrompt(org.jline.terminal.Terminal terminal, List<org.jline.utils.AttributedString> header, org.jline.utils.AttributedString message, List<T> items, ConsolePrompt.UiConfig cfg) AbstractPrompt(org.jline.terminal.Terminal terminal, List<org.jline.utils.AttributedString> header, org.jline.utils.AttributedString message, ConsolePrompt.UiConfig cfg) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrefreshDisplay(int row) protected voidrefreshDisplay(int row, int column, String buffer, boolean newline) protected voidrefreshDisplay(int buffRow, int buffCol, String buffer, int candRow, int candCol, List<org.jline.reader.Candidate> candidates) protected voidrefreshDisplay(int row, Set<String> selected) protected voidprotected void
-
Field Details
-
terminal
protected final org.jline.terminal.Terminal terminal -
bindingReader
protected final org.jline.keymap.BindingReader bindingReader -
items
-
firstItemRow
protected int firstItemRow -
config
-
-
Constructor Details
-
AbstractPrompt
public AbstractPrompt(org.jline.terminal.Terminal terminal, List<org.jline.utils.AttributedString> header, org.jline.utils.AttributedString message, ConsolePrompt.UiConfig cfg) -
AbstractPrompt
public AbstractPrompt(org.jline.terminal.Terminal terminal, List<org.jline.utils.AttributedString> header, org.jline.utils.AttributedString message, List<T> items, ConsolePrompt.UiConfig cfg)
-
-
Method Details
-
resetHeader
protected void resetHeader() -
resetDisplay
protected void resetDisplay() -
refreshDisplay
protected void refreshDisplay(int row) -
refreshDisplay
-
refreshDisplay
-
refreshDisplay
-