public class EObjectObservableList
extends ObservableList
PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
Modifier and Type | Field and Description |
---|---|
protected EObject |
eObject
The object owning the feature
|
protected EStructuralFeature |
eStructuralFeature
The structural feature
|
protected Adapter |
listener
The listener attached
|
Constructor and Description |
---|
EObjectObservableList(EObject eObject,
EStructuralFeature eStructuralFeature)
Observe a list feature using a default realm
|
EObjectObservableList(Realm realm,
EObject eObject,
EStructuralFeature eStructuralFeature)
Observe a list feature using a custom realm
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object object) |
boolean |
add(java.lang.Object object) |
boolean |
addAll(java.util.Collection collection) |
boolean |
addAll(int index,
java.util.Collection collection) |
void |
clear() |
void |
dispose() |
protected void |
firstListenerAdded() |
java.lang.Object |
getObserved() |
protected void |
lastListenerRemoved() |
java.lang.Object |
move(int newPosition,
int oldPosition)
Moves the object from the old position to the new position.
|
void |
move(int newPosition,
java.lang.Object object)
Moves the object to the new position, if is in the list.
|
java.lang.Object |
remove(int index) |
boolean |
remove(java.lang.Object element) |
boolean |
removeAll(java.util.Collection collection) |
boolean |
retainAll(java.util.Collection collection) |
java.lang.Object |
set(int index,
java.lang.Object element) |
java.lang.String |
toString() |
protected java.util.List<java.lang.Object> |
wrappedList() |
protected EObject eObject
protected EStructuralFeature eStructuralFeature
protected Adapter listener
public EObjectObservableList(EObject eObject, EStructuralFeature eStructuralFeature)
eObject
- the object instanceeStructuralFeature
- the featurepublic EObjectObservableList(Realm realm, EObject eObject, EStructuralFeature eStructuralFeature)
realm
- the realmeObject
- the object instanceeStructuralFeature
- the featureprotected void firstListenerAdded()
protected void lastListenerRemoved()
public void dispose()
protected final java.util.List<java.lang.Object> wrappedList()
public java.lang.Object getObserved()
public boolean add(java.lang.Object object)
public void add(int index, java.lang.Object object)
public boolean addAll(java.util.Collection collection)
public boolean addAll(int index, java.util.Collection collection)
public java.lang.Object set(int index, java.lang.Object element)
public java.lang.Object remove(int index)
public boolean remove(java.lang.Object element)
public boolean removeAll(java.util.Collection collection)
public boolean retainAll(java.util.Collection collection)
public void clear()
public java.lang.Object move(int newPosition, int oldPosition)
EList
newPosition
- the position of the object after the move.oldPosition
- the position of the object before the move.public void move(int newPosition, java.lang.Object object)
EList
newPosition
- the position of the object after the move.object
- the object to move.public java.lang.String toString()