Interface ComboBox.Listener

Enclosing class:
ComboBox<V>

public static interface ComboBox.Listener
Listener interface that can be used to catch user events on the combo box
  • Method Summary

    Modifier and Type
    Method
    Description
    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
  • 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 selected
      previousSelection - Index of the item which was previously selected
      changedByUserInteraction - If true then this selection change happened because of user interaction with the combo box. If false then the selected item was set programmatically.