Interface ListViewItemListener

    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void itemInserted​(ListView listView, int index)
      Called when an item has been inserted into the list view.
      default void itemsCleared​(ListView listView)
      Called when the items in a list view have been cleared.
      default void itemsRemoved​(ListView listView, int index, int count)
      Called when items have been removed from the list view.
      default void itemsSorted​(ListView listView)
      Called when the items in a list view have been sorted.
      default void itemUpdated​(ListView listView, int index)
      Called when an item in the list view has been updated.
    • Method Detail

      • itemInserted

        default void itemInserted​(ListView listView,
                                  int index)
        Called when an item has been inserted into the list view.
        Parameters:
        listView - The source of the event.
        index - The index of the item that was inserted.
      • itemsRemoved

        default void itemsRemoved​(ListView listView,
                                  int index,
                                  int count)
        Called when items have been removed from the list view.
        Parameters:
        listView - The source of the event.
        index - The first index affected by the event.
        count - The number of items that were removed, or -1 if all items were removed.
      • itemUpdated

        default void itemUpdated​(ListView listView,
                                 int index)
        Called when an item in the list view has been updated.
        Parameters:
        listView - The source of the event.
        index - The first index affected by the event.
      • itemsCleared

        default void itemsCleared​(ListView listView)
        Called when the items in a list view have been cleared.
        Parameters:
        listView - The source of the event.
      • itemsSorted

        default void itemsSorted​(ListView listView)
        Called when the items in a list view have been sorted.
        Parameters:
        listView - The source of the event.