Class Choice<T>

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

public class Choice<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

  • Method Details