Interface ListListener<T>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  ListListener.Adapter<T>
      Deprecated.
      Since 2.1 and Java 8 the interface itself has default implementations.
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void comparatorChanged​(List<T> list, java.util.Comparator<T> previousComparator)
      Called when a list's comparator has changed.
      default void itemInserted​(List<T> list, int index)
      Called when an item has been inserted into a list.
      default void itemsRemoved​(List<T> list, int index, Sequence<T> items)
      Called when items have been removed from a list.
      default void itemUpdated​(List<T> list, int index, T previousItem)
      Called when a list item has been updated.
      default void listCleared​(List<T> list)
      Called when list data has been reset.
    • Method Detail

      • itemInserted

        default void itemInserted​(List<T> list,
                                  int index)
        Called when an item has been inserted into a list.
        Parameters:
        list - The source of the list event.
        index - The index at which the item was added.
      • itemsRemoved

        default void itemsRemoved​(List<T> list,
                                  int index,
                                  Sequence<T> items)
        Called when items have been removed from a list.
        Parameters:
        list - The source of the list event.
        index - The starting index from which items have been removed.
        items - The items that were removed from the list.
      • itemUpdated

        default void itemUpdated​(List<T> list,
                                 int index,
                                 T previousItem)
        Called when a list item has been updated.
        Parameters:
        list - The source of the list event.
        index - The index of the item that was updated.
        previousItem - The item that was previously stored at index.
      • listCleared

        default void listCleared​(List<T> list)
        Called when list data has been reset.
        Parameters:
        list - The source of the list event.
      • comparatorChanged

        default void comparatorChanged​(List<T> list,
                                       java.util.Comparator<T> previousComparator)
        Called when a list's comparator has changed.
        Parameters:
        list - The source of the event.
        previousComparator - The previous comparator value.