Skip to main content

ListEvent

Java API

This event is the base class for List-based component related events. inherited methods will provide essential information about the selected item and allow developers to implement custom actions or responses when an inherited event is fired.

Event Payload

MethodDescription
getSelectedIndex()Returns the selected index, or -1 if no item is selected.
getSelectedItem()Returns the selected item, or null if no item is selected.
getSelectedIndices()Returns a list of selected indices, or an empty list if no item is selected. If the list doesn't support multiple selection, the list will contain only one item.
getSelectedItems()Returns a list of selected items. If the list doesn't support multiple selection, the list will contain only one item.

See Also

Events

Components