public static interface ComboBox.Listener
Listener interface that can be used to catch user events on the combo box
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
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
- Iftrue
then this selection change happened because of user interaction with the combo box. Iffalse
then the selected item was set programmatically.
-