Module org.apache.wicket.tester
Package org.apache.wicket.util.tester
Class FormTester.ChoiceSelector
java.lang.Object
org.apache.wicket.util.tester.FormTester.ChoiceSelector
- Enclosing class:
- FormTester
A selector template for selecting selectable
FormComponents with an index of
option -- supports RadioGroup, CheckGroup, and
AbstractChoice family.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChoiceSelector(FormComponent<?> formComponent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidassignValueToFormComponent(FormComponent<?> formComponent, String value) Implements whether toggle or accumulate the selection.protected final voiddoSelect(int index) Selects a given index in a selectableFormComponent.getChoiceValueForIndex(int index)
-
Constructor Details
-
ChoiceSelector
Constructor.- Parameters:
formComponent- aFormComponent
-
-
Method Details
-
assignValueToFormComponent
Implements whether toggle or accumulate the selection.- Parameters:
formComponent- aFormComponentvalue- aStringvalue
-
getChoiceValueForIndex
-
doSelect
Selects a given index in a selectableFormComponent.- Parameters:
index-
-