Class ListFormat<TOption>
- java.lang.Object
-
- com.github.rvesse.airline.prompts.formatters.ListFormat<TOption>
-
- Type Parameters:
TOption- Option type
- All Implemented Interfaces:
PromptFormatter
public class ListFormat<TOption> extends java.lang.Object implements PromptFormatter
A prompt formatter that presents a list of optionsThis will format the options as a list, using columns
-
-
Field Summary
Fields Modifier and Type Field Description private intcolumns
-
Constructor Summary
Constructors Constructor Description ListFormat()Creates a new list format with default columnsListFormat(int columns)Creates a new list format with the specified number of columns
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voiddisplayPrompt(Prompt<T> prompt)Displays the prompt
-
-
-
Method Detail
-
displayPrompt
public <T> void displayPrompt(Prompt<T> prompt)
Description copied from interface:PromptFormatterDisplays the prompt- Specified by:
displayPromptin interfacePromptFormatter- Type Parameters:
T- Option type- Parameters:
prompt- Prompt
-
-