Class CliChoice<T>

java.lang.Object
nz.org.riskscape.wizard.CliChoice<T>

public class CliChoice<T> extends Object

Used to represent a choice the user has to make as part of a prompt

  • Field Details

    • NO_SHORTCUT

      public static final String NO_SHORTCUT
      See Also:
    • label

      public final String label

      the main text associated with the choice

    • shortcut

      public final String shortcut

      A mnemonic that the user can use to pick the choice

    • data

      public final T data

      An arbitrary java object to associate with the choice

    • subtitle

      public final String subtitle

      An optional subtitle to display after the label

  • Constructor Details

    • CliChoice

      public CliChoice(String label, String shortcut, T data)
    • CliChoice

      public CliChoice(String label, T data)
    • CliChoice

      public CliChoice(String label, String shortcut, T data, String subtitle)
  • Method Details