org.eclipse.emf.databinding
Class EObjectObservableList
java.lang.Object
org.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.list.ObservableList
org.eclipse.emf.databinding.EObjectObservableList
- All Implemented Interfaces:
- java.lang.Iterable, java.util.Collection, java.util.List, IObservable, IObservableCollection, IObserving, IObservableList
- Direct Known Subclasses:
- EditingDomainEObjectObservableList
public class EObjectObservableList
- extends ObservableList
- implements IObserving
PROVISIONAL
This API is subject to arbitrary change, including renaming or removal.
| Methods inherited from class org.eclipse.core.databinding.observable.list.ObservableList |
addListChangeListener, contains, containsAll, equals, fireChange, fireListChange, get, getElementType, getterCalled, hashCode, indexOf, isEmpty, isStale, iterator, lastIndexOf, listIterator, listIterator, removeListChangeListener, setStale, size, subList, toArray, toArray, updateWrappedList |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, subList, toArray, toArray |
eObject
protected EObject eObject
eStructuralFeature
protected EStructuralFeature eStructuralFeature
listener
protected Adapter listener
EObjectObservableList
public EObjectObservableList(EObject eObject,
EStructuralFeature eStructuralFeature)
EObjectObservableList
public EObjectObservableList(Realm realm,
EObject eObject,
EStructuralFeature eStructuralFeature)
firstListenerAdded
protected void firstListenerAdded()
lastListenerRemoved
protected void lastListenerRemoved()
dispose
public void dispose()
- Specified by:
dispose in interface IObservable- Overrides:
dispose in class ObservableList
wrappedList
protected final java.util.List<java.lang.Object> wrappedList()
getObserved
public java.lang.Object getObserved()
- Specified by:
getObserved in interface IObserving
add
public boolean add(java.lang.Object object)
- Specified by:
add in interface java.util.Collection- Specified by:
add in interface java.util.List- Specified by:
add in interface IObservableList- Overrides:
add in class ObservableList
add
public void add(int index,
java.lang.Object object)
- Specified by:
add in interface java.util.List- Overrides:
add in class ObservableList
addAll
public boolean addAll(java.util.Collection collection)
- Specified by:
addAll in interface java.util.Collection- Specified by:
addAll in interface java.util.List- Specified by:
addAll in interface IObservableList- Overrides:
addAll in class ObservableList
addAll
public boolean addAll(int index,
java.util.Collection collection)
- Specified by:
addAll in interface java.util.List- Specified by:
addAll in interface IObservableList- Overrides:
addAll in class ObservableList
set
public java.lang.Object set(int index,
java.lang.Object element)
- Specified by:
set in interface java.util.List- Specified by:
set in interface IObservableList- Overrides:
set in class ObservableList
remove
public java.lang.Object remove(int index)
- Specified by:
remove in interface java.util.List- Specified by:
remove in interface IObservableList- Overrides:
remove in class ObservableList
remove
public boolean remove(java.lang.Object element)
- Specified by:
remove in interface java.util.Collection- Specified by:
remove in interface java.util.List- Specified by:
remove in interface IObservableList- Overrides:
remove in class ObservableList
removeAll
public boolean removeAll(java.util.Collection collection)
- Specified by:
removeAll in interface java.util.Collection- Specified by:
removeAll in interface java.util.List- Specified by:
removeAll in interface IObservableList- Overrides:
removeAll in class ObservableList
retainAll
public boolean retainAll(java.util.Collection collection)
- Specified by:
retainAll in interface java.util.Collection- Specified by:
retainAll in interface java.util.List- Specified by:
retainAll in interface IObservableList- Overrides:
retainAll in class ObservableList
clear
public void clear()
- Specified by:
clear in interface java.util.Collection- Specified by:
clear in interface java.util.List- Overrides:
clear in class ObservableList
move
public java.lang.Object move(int newPosition,
int oldPosition)
- Description copied from interface:
EList
- Moves the object from the old position to the new position.
- Specified by:
move in interface IObservableList- Overrides:
move in class ObservableList
- Parameters:
newPosition - the position of the object after the move.oldPosition - the position of the object before the move.
- Returns:
- the moved object.
move
public void move(int newPosition,
java.lang.Object object)
- Description copied from interface:
EList
- Moves the object to the new position, if is in the list.
- Parameters:
newPosition - the position of the object after the move.object - the object to move.
toString
public java.lang.String toString()
- Overrides:
toString in class ObservableList
addListener
protected void addListener(java.lang.Object arg0,
IObservablesListener arg1)
removeListener
protected void removeListener(java.lang.Object arg0,
IObservablesListener arg1)
hasListeners
protected boolean hasListeners()
fireEvent
protected void fireEvent(ObservableEvent arg0)
getRealm
public Realm getRealm()