Interface ListHandle
- All Superinterfaces:
FormComponentHandle
Handle for the "List" form component. The Swing widget is a
JList.
Reach this handle via ScreenHandle.list().
-
Method Summary
Modifier and TypeMethodDescriptionassertSelectedItem(String expected) Assert that the currently selected item equals the expected value.getItems()The items currently in the list.The single selected item, or empty if nothing is selected.The currently selected items.selectIndex(int index) Select the item at the given index.selectItem(String item) Select the first item whose label equals the given value.Methods inherited from interface FormComponentHandle
getId, isEnabled, isVisible
-
Method Details
-
getItems
-
getSelectedItem
The single selected item, or empty if nothing is selected. Multi-selection is exposed viagetSelectedItems(). -
getSelectedItems
-
selectItem
Select the first item whose label equals the given value. -
selectIndex
Select the item at the given index. -
assertSelectedItem
Assert that the currently selected item equals the expected value. -
assertEnabled
- Specified by:
assertEnabledin interfaceFormComponentHandle
-
assertDisabled
- Specified by:
assertDisabledin interfaceFormComponentHandle
-
assertVisible
- Specified by:
assertVisiblein interfaceFormComponentHandle
-
assertInvisible
- Specified by:
assertInvisiblein interfaceFormComponentHandle
-