Class FormTester.ChoiceSelector

  • Enclosing class:
    FormTester

    protected abstract class FormTester.ChoiceSelector
    extends Object
    A selector template for selecting selectable FormComponents with an index of option -- supports RadioGroup, CheckGroup, and AbstractChoice family.
    • Constructor Detail

      • ChoiceSelector

        protected ChoiceSelector​(FormComponent<?> formComponent)
        Constructor.
        Parameters:
        formComponent - a FormComponent
    • Method Detail

      • assignValueToFormComponent

        protected abstract void assignValueToFormComponent​(FormComponent<?> formComponent,
                                                           String value)
        Implements whether toggle or accumulate the selection.
        Parameters:
        formComponent - a FormComponent
        value - a String value
      • doSelect

        protected final void doSelect​(int index)
        Selects a given index in a selectable FormComponent.
        Parameters:
        index -