Class ListListener.Adapter<T>

  • Type Parameters:
    T - Type of object stored in this list.
    All Implemented Interfaces:
    ListListener<T>
    Enclosing interface:
    ListListener<T>

    @Deprecated
    public static final class ListListener.Adapter<T>
    extends java.lang.Object
    implements ListListener<T>
    Deprecated.
    Since 2.1 and Java 8 the interface itself has default implementations.
    List listener adapter.
    • Constructor Summary

      Constructors 
      Constructor Description
      Adapter()
      Deprecated.
       
    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Adapter

        public Adapter()
        Deprecated.
    • Method Detail

      • itemInserted

        public void itemInserted​(List<T> list,
                                 int index)
        Deprecated.
        Description copied from interface: ListListener
        Called when an item has been inserted into a list.
        Specified by:
        itemInserted in interface ListListener<T>
        Parameters:
        list - The source of the list event.
        index - The index at which the item was added.
      • itemsRemoved

        public void itemsRemoved​(List<T> list,
                                 int index,
                                 Sequence<T> items)
        Deprecated.
        Description copied from interface: ListListener
        Called when items have been removed from a list.
        Specified by:
        itemsRemoved in interface ListListener<T>
        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

        public void itemUpdated​(List<T> list,
                                int index,
                                T previousItem)
        Deprecated.
        Description copied from interface: ListListener
        Called when a list item has been updated.
        Specified by:
        itemUpdated in interface ListListener<T>
        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

        public void listCleared​(List<T> list)
        Deprecated.
        Description copied from interface: ListListener
        Called when list data has been reset.
        Specified by:
        listCleared in interface ListListener<T>
        Parameters:
        list - The source of the list event.
      • comparatorChanged

        public void comparatorChanged​(List<T> list,
                                      java.util.Comparator<T> previousComparator)
        Deprecated.
        Description copied from interface: ListListener
        Called when a list's comparator has changed.
        Specified by:
        comparatorChanged in interface ListListener<T>
        Parameters:
        list - The source of the event.
        previousComparator - The previous comparator value.