Interface IListChangeEvent<T>

  • All Known Implementing Classes:
    ListChangeEvent

    public interface IListChangeEvent<T>
    This is used in conjunction with IListChangeListener. It contains the information regarding the content of a list being changed.
    Version:
    2.5
    Author:
    Pascal Filion
    Since:
    2.4
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  IListChangeEvent.EventType
      This enumeration lists the possible modification a list can have.
    • Method Detail

      • getEndIndex

        int getEndIndex()
        Returns the index of where the change occurred in the list.
        Returns:
        The index of where the change occurred in the list
      • getEventType

        IListChangeEvent.EventType getEventType()
        Returns the type of change that occurred in the list.
        Returns:
        One of the possible types of changes
      • getList

        java.util.List<T> getList()
        Returns a copy of the actual list after the change has happened.
        Returns:
        The copy of the list that got changed
      • getListName

        java.lang.String getListName()
        Returns the name describing the list.
        Returns:
        The name of the list for which IListChangeListeners have been registered with the source to be notified upon changes
      • getSource

        <S extends ListHolderStateObject<? extends T>> S getSource()
        Returns the source where the modification occurred and that fired the event.
        Type Parameters:
        S - The type of the source owning the list
        Returns:
        The source of the event
      • getStartIndex

        int getStartIndex()
        Returns the index of where the change occurred in the list.
        Returns:
        The index of where the change occurred in the list
      • itemsSize

        int itemsSize()
        Returns the number of items that caused the original list to change.
        Returns:
        The count of items triggering this event