Package commandLineMenus
Interface ListAction<T>
-
- Type Parameters:
T- The type of the items in the List
public interface ListAction<T>Binds an action to item from a List. Each time an item will be selected, the selectedItem() method will be triggered.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiditemSelected(int index, T item)Triggered when the item is selected in a List.
-
-
-
Method Detail
-
itemSelected
void itemSelected(int index, T item)Triggered when the item is selected in a List.- Parameters:
index- Index of the selected item.item- The item selected.
-
-