Interface ComboBox.Listener
public static interface ComboBox.Listener
Listener interface that can be used to catch user events on the combo box
-
Method Summary
Modifier and TypeMethodDescriptionvoidonSelectionChanged(int selectedIndex, int previousSelection, boolean changedByUserInteraction) This method is called whenever the user changes selection from one item to another in the combo box
-
Method Details
-
onSelectionChanged
void onSelectionChanged(int selectedIndex, int previousSelection, boolean changedByUserInteraction) This method is called whenever the user changes selection from one item to another in the combo box- Parameters:
selectedIndex- Index of the item which is now selectedpreviousSelection- Index of the item which was previously selectedchangedByUserInteraction- Iftruethen this selection change happened because of user interaction with the combo box. Iffalsethen the selected item was set programmatically.
-