Class ListChangedEvent<T>

java.lang.Object
java.util.EventObject
com.esri.arcgisruntime.util.ListChangedEvent<T>
Type Parameters:
T - type of items in the list that changed
All Implemented Interfaces:
Serializable

@Deprecated(since="200.2.0", forRemoval=true) public final class ListChangedEvent<T> extends EventObject
Deprecated, for removal: This API element is subject to removal in a future version.
Event indicating that an item has been added to or removed from a list that implements ListenableList.

In addition to the list that fired the event, this instance will give you the items added or removed, the index they were added to/removed from and an enum that indicates whether this was an add or a remove.

Since:
100.0.0
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
    Indicates the type of change that occurred on the list.
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    ListChangedEvent(ListenableList<T> source, int index, List<T> items, ListChangedEvent.Action action)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new ListChangedEvent instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Indicates whether the items were added (ADDED) or removed (REMOVED).
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the index the items were added to or removed from.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the items added to or removed from the list.
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ListChangedEvent

      public ListChangedEvent(ListenableList<T> source, int index, List<T> items, ListChangedEvent.Action action)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new ListChangedEvent instance.
      Parameters:
      source - the list that changed
      index - the index at which items were added or removed
      items - items affected by change
      action - type of change
      Since:
      100.0.0
  • Method Details

    • getSource

      public ListenableList<T> getSource()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      getSource in class EventObject
    • getIndex

      public int getIndex()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the index the items were added to or removed from.
      Returns:
      index the items were added to or removed from
      Since:
      100.0.0
    • getItems

      public List<T> getItems()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the items added to or removed from the list.
      Returns:
      an unmodifiable list of the items added to or removed from the list. This will throw an UnsupportedOperationException if an attempt is made to modify it.
      Since:
      100.0.0
    • getAction

      public ListChangedEvent.Action getAction()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Indicates whether the items were added (ADDED) or removed (REMOVED).
      Returns:
      whether the item was added or removed
      Since:
      100.0.0