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 java.lang.ObjectA selector template for selecting selectableFormComponents with an index of option -- supportsRadioGroup,CheckGroup, andAbstractChoicefamily.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChoiceSelector(FormComponent<?> formComponent)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidassignValueToFormComponent(FormComponent<?> formComponent, java.lang.String value)Implements whether toggle or accumulate the selection.protected voiddoSelect(int index)Selects a given index in a selectableFormComponent.java.lang.StringgetChoiceValueForIndex(int index)
-
-
-
Constructor Detail
-
ChoiceSelector
protected ChoiceSelector(FormComponent<?> formComponent)
Constructor.- Parameters:
formComponent- aFormComponent
-
-
Method Detail
-
assignValueToFormComponent
protected abstract void assignValueToFormComponent(FormComponent<?> formComponent, java.lang.String value)
Implements whether toggle or accumulate the selection.- Parameters:
formComponent- aFormComponentvalue- aStringvalue
-
getChoiceValueForIndex
public java.lang.String getChoiceValueForIndex(int index)
-
doSelect
protected final void doSelect(int index)
Selects a given index in a selectableFormComponent.- Parameters:
index-
-
-