Class QuestionFormat<TOption>
java.lang.Object
com.github.rvesse.airline.prompts.formatters.QuestionFormat<TOption>
- Type Parameters:
TOption
- Option type
- All Implemented Interfaces:
PromptFormatter
Prompt format for simple questions with either a free-form response or with a limited number of options
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new question format with default columnsQuestionFormat
(int columns) Creates a new question format with the specified columns -
Method Summary
-
Field Details
-
columns
private final int columns
-
-
Constructor Details
-
QuestionFormat
public QuestionFormat()Creates a new question format with default columns -
QuestionFormat
public QuestionFormat(int columns) Creates a new question format with the specified columns- Parameters:
columns
- Columns
-
-
Method Details
-
displayPrompt
Description copied from interface:PromptFormatter
Displays the prompt- Specified by:
displayPrompt
in interfacePromptFormatter
- Type Parameters:
T
- Option type- Parameters:
prompt
- Prompt
-