Interface ListSpinnerHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "Spinner of enumerated values" form component. The Swing widget is a
JSpinner that cycles through a fixed list of string entries.
Reach this handle via ScreenHandle.listSpinner().
-
Method Summary
Modifier and TypeMethodDescriptionassertSelectedItem(String expected) Assert that the currently displayed entry equals the expected value.Move to the previous entry.getItems()The configured list entries.intThe index of the currently displayed entry.The currently displayed entry.Move to the next entry.selectIndex(int index) Select the entry at the given index.selectItem(String item) Select the entry whose label equals the given value.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getItems
-
getSelectedItem
The currently displayed entry. -
getSelectedIndex
int getSelectedIndex()The index of the currently displayed entry. -
selectItem
Select the entry whose label equals the given value. -
selectIndex
Select the entry at the given index. -
increment
Move to the next entry. -
decrement
Move to the previous entry. -
assertSelectedItem
Assert that the currently displayed entry equals the expected value. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-