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
Modifier and TypeClassDescriptionstatic 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
ConstructorDescriptionListChangedEvent
(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 TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Indicates whether the items were added (ADDED) or removed (REMOVED).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.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.Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.util.EventObject
toString
-
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 changedindex
- the index at which items were added or removeditems
- items affected by changeaction
- type of change- Since:
- 100.0.0
-
-
Method Details
-
getSource
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getSource
in classEventObject
-
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
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
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
-
Observable.addListener(InvalidationListener)
orObservableList.addListener(ListChangeListener)
instead.