- java.lang.Object
-
- org.jline.prompt.impl.DefaultPrompt
-
- org.jline.prompt.impl.DefaultChoicePrompt
-
- All Implemented Interfaces:
ChoicePrompt,Prompt
public class DefaultChoicePrompt extends DefaultPrompt implements ChoicePrompt
Default implementation of ChoicePrompt interface. This is now the native implementation that doesn't depend on console-ui.
-
-
Field Summary
-
Fields inherited from class org.jline.prompt.impl.DefaultPrompt
message, name
-
-
Constructor Summary
Constructors Constructor Description DefaultChoicePrompt(java.lang.String name, java.lang.String message, java.util.List<ChoiceItem> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ChoiceItem>getItems()Get the list of choice items.-
Methods inherited from class org.jline.prompt.impl.DefaultPrompt
getFilter, getMessage, getName, getTransformer, setFilter, setTransformer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jline.prompt.Prompt
getFilter, getMessage, getName, getTransformer
-
-
-
-
Constructor Detail
-
DefaultChoicePrompt
public DefaultChoicePrompt(java.lang.String name, java.lang.String message, java.util.List<ChoiceItem> items)
-
-
Method Detail
-
getItems
public java.util.List<ChoiceItem> getItems()
Description copied from interface:ChoicePromptGet the list of choice items.- Specified by:
getItemsin interfaceChoicePrompt- Returns:
- the list of choice items
-
-