T - The type of the items in the collection.public interface IObservableCollection<T> extends Collection<T>
ObservableCollection| Modifier and Type | Method and Description |
|---|---|
void |
addItemAddedListener(IEventHandler<ItemEventArgs<T>> itemAddedEvent)
Adds the given listener for the
ItemAdded event that occurs when an item has been added to this collection. |
void |
addItemChangedListener(IEventHandler<ItemEventArgs<T>> itemChangedEvent)
Adds the given listener for the
ItemChanged event that occurs when an item in this collection has changed
significantly. |
void |
addItemRemovedListener(IEventHandler<ItemEventArgs<T>> itemRemovedEvent)
Adds the given listener for the
ItemRemoved event that occurs when an item has been removed from this
collection. |
void |
removeItemAddedListener(IEventHandler<ItemEventArgs<T>> itemAddedEvent)
Removes the given listener for the
ItemAdded event that occurs when an item has been added to this collection. |
void |
removeItemChangedListener(IEventHandler<ItemEventArgs<T>> itemChangedEvent)
Removes the given listener for the
ItemChanged event that occurs when an item in this collection has changed
significantly. |
void |
removeItemRemovedListener(IEventHandler<ItemEventArgs<T>> itemRemovedEvent)
Removes the given listener for the
ItemRemoved event that occurs when an item has been removed from this
collection. |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayvoid addItemAddedListener(IEventHandler<ItemEventArgs<T>> itemAddedEvent)
ItemAdded event that occurs when an item has been added to this collection.itemAddedEvent - The listener to add.removeItemAddedListener(IEventHandler)void addItemChangedListener(IEventHandler<ItemEventArgs<T>> itemChangedEvent)
ItemChanged event that occurs when an item in this collection has changed
significantly.
It is up to the implementation whether and when to trigger this event.
itemChangedEvent - The listener to add.removeItemChangedListener(IEventHandler)void addItemRemovedListener(IEventHandler<ItemEventArgs<T>> itemRemovedEvent)
ItemRemoved event that occurs when an item has been removed from this
collection.itemRemovedEvent - The listener to add.removeItemRemovedListener(IEventHandler)void removeItemAddedListener(IEventHandler<ItemEventArgs<T>> itemAddedEvent)
ItemAdded event that occurs when an item has been added to this collection.itemAddedEvent - The listener to remove.addItemAddedListener(IEventHandler)void removeItemChangedListener(IEventHandler<ItemEventArgs<T>> itemChangedEvent)
ItemChanged event that occurs when an item in this collection has changed
significantly.
It is up to the implementation whether and when to trigger this event.
itemChangedEvent - The listener to remove.addItemChangedListener(IEventHandler)void removeItemRemovedListener(IEventHandler<ItemEventArgs<T>> itemRemovedEvent)
ItemRemoved event that occurs when an item has been removed from this
collection.itemRemovedEvent - The listener to remove.addItemRemovedListener(IEventHandler)