Interface RadioButtonsHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Radio button group" form component. The widget is a single form component that
internally renders a group of
JRadioButtons sharing the same bound installer variable.
Reach this handle via ScreenHandle.radioButtons().
-
Method Summary
Modifier and TypeMethodDescriptionassertSelectedLabel(String expected) Assert that the currently selected label equals the expected value.The configured radio button labels.intThe index of the currently selected radio button, or-1if none is selected.The label of the currently selected radio button, or empty if none is selected.selectIndex(int index) Select the radio button at the given index.selectLabel(String label) Select the radio button whose label equals the given value.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getLabels
-
getSelectedLabel
The label of the currently selected radio button, or empty if none is selected. -
getSelectedIndex
int getSelectedIndex()The index of the currently selected radio button, or-1if none is selected. -
selectLabel
Select the radio button whose label equals the given value. -
selectIndex
Select the radio button at the given index. -
assertSelectedLabel
Assert that the currently selected label equals the expected value. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-