|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
org.eclipse.emf.common.util.BasicEList
org.eclipse.emf.common.notify.impl.NotifyingListImpl
org.eclipse.emf.edit.provider.ItemProvider.ItemProviderNotifyingArrayList
This class overrides the "notify" methods to fire INotifyChangedListener
calls
and it overrides the "inverse basic" methods to maintain referential integrity
by calling IUpdateableItemParent.setParent
.
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.common.util.BasicEList |
BasicEList.BasicIndexOutOfBoundsException, BasicEList.EIterator, BasicEList.EListIterator, BasicEList.FastCompare, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList |
Field Summary |
Fields inherited from class org.eclipse.emf.common.util.BasicEList |
data, size |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
ItemProvider.ItemProviderNotifyingArrayList()
This constructs an empty instance. |
|
ItemProvider.ItemProviderNotifyingArrayList(Collection 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. |
Method Summary | |
protected NotificationImpl |
createNotification(int eventType,
Object oldObject,
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(Object object,
NotificationChain notifications)
This implementation will call IUpdateableItemParent.setParent , if appropriate. |
protected NotificationChain |
inverseRemove(Object object,
NotificationChain notifications)
This implementation will call IUpdateableItemParent.setParent , if appropriate. |
protected boolean |
isNotificationRequired()
This always notifies. |
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl |
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 |
Methods inherited from class org.eclipse.emf.common.util.BasicEList |
add, add, addAll, addAll, assign, basicGet, basicIterator, basicList, basicListIterator, basicListIterator, clone, contains, containsAll, data, didAdd, didChange, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, indexOf, isEmpty, isUnique, iterator, lastIndexOf, listIterator, listIterator, move, newData, remove, resolve, retainAll, set, setData, shrink, size, toArray, toArray, toString, useEquals, validate |
Methods inherited from class java.util.AbstractList |
removeRange, subList |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.util.EList |
move |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, retainAll, set, size, subList, toArray, toArray |
Constructor Detail |
public ItemProvider.ItemProviderNotifyingArrayList()
public ItemProvider.ItemProviderNotifyingArrayList(int initialCapacity)
public ItemProvider.ItemProviderNotifyingArrayList(Collection collection)
Method Detail |
protected boolean isNotificationRequired()
isNotificationRequired
in class NotifyingListImpl
false
.protected boolean hasInverse()
hasInverse
in class NotifyingListImpl
false
.protected void dispatchNotification(Notification notification)
dispatchNotification
in class NotifyingListImpl
notification
- the notification to dispatch.protected NotificationImpl createNotification(int eventType, Object oldObject, Object newObject, int index, boolean wasSet)
ItemProvider.ItemProviderNotification
.
createNotification
in class NotifyingListImpl
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
protected NotificationChain inverseAdd(Object object, NotificationChain notifications)
IUpdateableItemParent.setParent
, if appropriate.
inverseAdd
in class NotifyingListImpl
object
- the object that's been added to the list.notifications
- the chain of accumulating notifications.
notifications
.protected NotificationChain inverseRemove(Object object, NotificationChain notifications)
IUpdateableItemParent.setParent
, if appropriate.
inverseRemove
in class NotifyingListImpl
object
- the object that's been remove from the list.notifications
- the chain of accumulating notifications.
notifications
.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |