public static interface ListContainer.ItemClickedListener
ListContainer items.
To respond to and process click events of ListContainer items, onItemClicked must be implemented.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onItemClicked(ListContainer parent,
Component component,
int position,
long id) |
Called when an item in the
ListContainer instance is clicked and processes the click event. |
void onItemClicked(ListContainer parent, Component component, int position, long id)
ListContainer instance is clicked and processes the click event.parent - Indicates the ListContainer instance with a clicked item.component - Indicates the clicked Component item in the ListContainer instance.position - Indicates the position of the Component item in the ListContainer instance.
The value is a non-negative integer.id - Indicates the row ID of the clicked item.