public class ItemProvider.ItemProviderNotifyingArrayList<E> extends NotifyingListImpl<E>
INotifyChangedListener
calls
and it overrides the "inverse basic" methods to maintain referential integrity
by calling IUpdateableItemParent.setParent
.BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator<E1>, BasicEList.EListIterator<E1>, BasicEList.FastCompare<E>, BasicEList.NonResolvingEIterator<E1>, BasicEList.NonResolvingEListIterator<E1>, BasicEList.UnmodifiableEList<E>
data, size
Constructor and Description |
---|
ItemProvider.ItemProviderNotifyingArrayList()
This constructs an empty instance.
|
ItemProvider.ItemProviderNotifyingArrayList(java.util.Collection<? extends E> collection)
This constructs an instance with the same initial content as the given collection.
|
ItemProvider.ItemProviderNotifyingArrayList(int initialCapacity)
This constructs an instance with this initial capacity.
|
Modifier and Type | Method and Description |
---|---|
protected NotificationImpl |
createNotification(int eventType,
java.lang.Object oldObject,
java.lang.Object newObject,
int index,
boolean wasSet)
This implementation creates an
ItemProvider.ItemProviderNotification . |
protected NotificationChain |
createNotificationChain(int capacity)
Creates a notification chain, if the expected capacity exceeds the threshold
at which a list is better than chaining individual notification instances.
|
protected void |
dispatchNotification(Notification notification)
This implementation directs the notification the containing item provider.
|
protected boolean |
hasInverse()
This has an inverse
|
protected NotificationChain |
inverseAdd(java.lang.Object object,
NotificationChain notifications)
This implementation will call
IUpdateableItemParent.setParent , if appropriate. |
protected NotificationChain |
inverseRemove(java.lang.Object object,
NotificationChain notifications)
This implementation will call
IUpdateableItemParent.setParent , if appropriate. |
protected boolean |
isNotificationRequired()
This always notifies.
|
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, canContainNull, clear, createNotification, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddUnique, doAddUnique, doClear, doMove, doRemove, doRemoveAll, doSetUnique, getFeature, getFeatureID, getFeatureID, getNotifier, hasShadow, isSet, move, remove, removeAll, resolve, setUnique, shadowAdd, shadowRemove, shadowSet
assign, basicGet, basicList, clone, contains, data, get, grow, indexOf, isEmpty, lastIndexOf, newData, primitiveGet, setData, shrink, size, toArray, toArray
add, add, addAll, addAll, basicIterator, basicListIterator, basicListIterator, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, getDuplicates, getNonDuplicates, hashCode, isUnique, iterator, listIterator, listIterator, move, remove, resolve, retainAll, set, toString, useEquals, validate
public ItemProvider.ItemProviderNotifyingArrayList()
public ItemProvider.ItemProviderNotifyingArrayList(int initialCapacity)
public ItemProvider.ItemProviderNotifyingArrayList(java.util.Collection<? extends E> collection)
protected boolean isNotificationRequired()
isNotificationRequired
in class NotifyingListImpl<E>
false
.protected boolean hasInverse()
hasInverse
in class NotifyingListImpl<E>
false
.protected void dispatchNotification(Notification notification)
dispatchNotification
in class NotifyingListImpl<E>
notification
- the notification to dispatch.protected NotificationImpl createNotification(int eventType, java.lang.Object oldObject, java.lang.Object newObject, int index, boolean wasSet)
ItemProvider.ItemProviderNotification
.createNotification
in class NotifyingListImpl<E>
eventType
- the type of change that has occurred.oldObject
- the value of the notifier's feature before the change occurred.newObject
- the value of the notifier's feature after the change occurred.index
- the position at which the change occurred.protected NotificationChain createNotificationChain(int capacity)
NotifyingListImpl
createNotificationChain
in class NotifyingListImpl<E>
protected NotificationChain inverseAdd(java.lang.Object object, NotificationChain notifications)
IUpdateableItemParent.setParent
, if appropriate.inverseAdd
in class NotifyingListImpl<E>
object
- the object that's been added to the list.notifications
- the chain of accumulating notifications.notifications
.protected NotificationChain inverseRemove(java.lang.Object object, NotificationChain notifications)
IUpdateableItemParent.setParent
, if appropriate.inverseRemove
in class NotifyingListImpl<E>
object
- the object that's been remove from the list.notifications
- the chain of accumulating notifications.notifications
.