public class EditingDomainEObjectObservableList extends EObjectObservableList
PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
Modifier and Type | Field and Description |
---|---|
protected EditingDomain |
domain
The editing domain
|
eObject, eStructuralFeature, listener
Constructor and Description |
---|
EditingDomainEObjectObservableList(EditingDomain domain,
EObject eObject,
EStructuralFeature eStructuralFeature)
Observe a feature of the instance using the default realm
|
EditingDomainEObjectObservableList(Realm realm,
EditingDomain domain,
EObject eObject,
EStructuralFeature eStructuralFeature)
Observe a feature of the instance using the 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 boolean |
execute(Command command)
Execute a command
|
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) |
firstListenerAdded, getObserved, lastListenerRemoved, toString, wrappedList
protected EditingDomain domain
public EditingDomainEObjectObservableList(EditingDomain domain, EObject eObject, EStructuralFeature eStructuralFeature)
domain
- the editing domaineObject
- the objecteStructuralFeature
- the featurepublic EditingDomainEObjectObservableList(Realm realm, EditingDomain domain, EObject eObject, EStructuralFeature eStructuralFeature)
domain
- the editing domainrealm
- eObject
- the objecteStructuralFeature
- the featurepublic void dispose()
dispose
in class EObjectObservableList
protected boolean execute(Command command)
command
- the command to executetrue
if execute else false
public boolean add(java.lang.Object object)
add
in class EObjectObservableList
public void add(int index, java.lang.Object object)
add
in class EObjectObservableList
public boolean addAll(java.util.Collection collection)
addAll
in class EObjectObservableList
public boolean addAll(int index, java.util.Collection collection)
addAll
in class EObjectObservableList
public java.lang.Object set(int index, java.lang.Object element)
set
in class EObjectObservableList
public java.lang.Object remove(int index)
remove
in class EObjectObservableList
public boolean remove(java.lang.Object element)
remove
in class EObjectObservableList
public boolean removeAll(java.util.Collection collection)
removeAll
in class EObjectObservableList
public boolean retainAll(java.util.Collection collection)
retainAll
in class EObjectObservableList
public void clear()
clear
in class EObjectObservableList
public java.lang.Object move(int newPosition, int oldPosition)
EList
move
in class EObjectObservableList
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
move
in class EObjectObservableList
newPosition
- the position of the object after the move.object
- the object to move.