Uses of Interface
org.jline.prompt.ChoiceBuilder
-
Packages that use ChoiceBuilder Package Description org.jline.prompt JLine Prompt API - Interactive Console Prompts for Java Applications.org.jline.prompt.impl Implementation classes for the JLine Prompt API. -
-
Uses of ChoiceBuilder in org.jline.prompt
Methods in org.jline.prompt that return ChoiceBuilder Modifier and Type Method Description ChoiceBuilderChoiceBuilder. add()Add the current choice to the list.default ChoiceBuilderChoiceBuilder. add(java.lang.String name, java.lang.String text, char key)Convenience method to add a simple choice item with name, text, and key.default ChoiceBuilderChoiceBuilder. add(java.lang.String name, java.lang.String text, char key, boolean defaultChoice)Convenience method to add a choice item with name, text, key, and default state.default ChoiceBuilderChoiceBuilder. add(java.lang.String name, java.lang.String text, char key, java.lang.String helpText, boolean defaultChoice)Convenience method to add a choice item with all options.ChoiceBuilderPromptBuilder. createChoicePrompt()Create a builder for choice prompts.ChoiceBuilderChoiceBuilder. defaultChoice(boolean defaultChoice)Set whether the current choice is the default.ChoiceBuilderChoiceBuilder. helpText(java.lang.String helpText)Set the help text for the current choice.ChoiceBuilderChoiceBuilder. key(char key)Set the key for the current choice.ChoiceBuilderChoiceBuilder. newChoice(java.lang.String id)Create a new choice with the given ID.ChoiceBuilderChoiceBuilder. text(java.lang.String text)Set the text for the current choice. -
Uses of ChoiceBuilder in org.jline.prompt.impl
Classes in org.jline.prompt.impl that implement ChoiceBuilder Modifier and Type Class Description classDefaultChoiceBuilderDefault implementation of ChoiceBuilder.Methods in org.jline.prompt.impl that return ChoiceBuilder Modifier and Type Method Description ChoiceBuilderDefaultChoiceBuilder. add()Add the current choice to the list.ChoiceBuilderDefaultPromptBuilder. createChoicePrompt()ChoiceBuilderDefaultChoiceBuilder. defaultChoice(boolean defaultChoice)Set whether the current choice is the default.ChoiceBuilderDefaultChoiceBuilder. filter(java.util.function.Function<java.lang.String,java.lang.String> filter)ChoiceBuilderDefaultChoiceBuilder. helpText(java.lang.String helpText)Set the help text for the current choice.ChoiceBuilderDefaultChoiceBuilder. key(char key)Set the key for the current choice.ChoiceBuilderDefaultChoiceBuilder. message(java.lang.String message)Set the message to display to the user.ChoiceBuilderDefaultChoiceBuilder. name(java.lang.String name)Set the name of this prompt.ChoiceBuilderDefaultChoiceBuilder. newChoice(java.lang.String id)Create a new choice with the given ID.ChoiceBuilderDefaultChoiceBuilder. text(java.lang.String text)Set the text for the current choice.ChoiceBuilderDefaultChoiceBuilder. transformer(java.util.function.Function<java.lang.String,java.lang.String> transformer)
-