Class RadioChoiceOption

public class RadioChoiceOption extends AbstractChoiceOption
Implementation of the AbstractTemplateOption that allows users to choose a value from the fixed set of options using radio buttons.
  • Constructor Details

    • RadioChoiceOption

      public RadioChoiceOption(BaseOptionTemplateSection section, String name, String label, String[][] choices)
      Constructor for RadioChoiceOption. Number of choices must be 2, otherwise an assertion will fail.
      section - the parent section.
      name - the unique name
      label - the presentable label
      choices - the list of choices from which the value can be chosen. This list must be of size 2. Each array entry should be an array of size 2, where position 0 will be interpeted as the choice unique name, and position 1 as the choice presentable label.
  • Method Details