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 Object implements PromptFormatter
A prompt formatter that presents a list of options

This will format the options as a list, using columns

  • Field Details

    • columns

      private final int columns
  • Constructor Details

    • ListFormat

      public ListFormat()
      Creates a new list format with default columns
    • ListFormat

      public ListFormat(int columns)
      Creates a new list format with the specified number of columns
      Parameters:
      columns -
  • Method Details

    • displayPrompt

      public <T> void displayPrompt(Prompt<T> prompt)
      Description copied from interface: PromptFormatter
      Displays the prompt
      Specified by:
      displayPrompt in interface PromptFormatter
      Type Parameters:
      T - Option type
      Parameters:
      prompt - Prompt