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
FormComponent
s with an index of
option -- supports RadioGroup
, CheckGroup
, and
AbstractChoice
family.-
Constructor Summary
ModifierConstructorDescriptionprotected
ChoiceSelector
(FormComponent<?> formComponent) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
assignValueToFormComponent
(FormComponent<?> formComponent, String value) Implements whether toggle or accumulate the selection.protected final void
doSelect
(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
- aFormComponent
value
- aString
value
-
getChoiceValueForIndex
-
doSelect
Selects a given index in a selectableFormComponent
.- Parameters:
index
-
-