Package org.apache.wicket.util.tester
Class FormTester.ChoiceSelector
- java.lang.Object
-
- org.apache.wicket.util.tester.FormTester.ChoiceSelector
-
- Enclosing class:
- FormTester
protected abstract class FormTester.ChoiceSelector extends Object
A selector template for selecting selectableFormComponent
s with an index of option -- supportsRadioGroup
,CheckGroup
, andAbstractChoice
family.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChoiceSelector(FormComponent<?> formComponent)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
assignValueToFormComponent(FormComponent<?> formComponent, String value)
Implements whether toggle or accumulate the selection.protected void
doSelect(int index)
Selects a given index in a selectableFormComponent
.String
getChoiceValueForIndex(int index)
-
-
-
Constructor Detail
-
ChoiceSelector
protected ChoiceSelector(FormComponent<?> formComponent)
Constructor.- Parameters:
formComponent
- aFormComponent
-
-
Method Detail
-
assignValueToFormComponent
protected abstract void assignValueToFormComponent(FormComponent<?> formComponent, String value)
Implements whether toggle or accumulate the selection.- Parameters:
formComponent
- aFormComponent
value
- aString
value
-
getChoiceValueForIndex
public String getChoiceValueForIndex(int index)
-
doSelect
protected final void doSelect(int index)
Selects a given index in a selectableFormComponent
.- Parameters:
index
-
-
-