|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.list.ObservableList
org.eclipse.emf.databinding.EObjectObservableList
public class EObjectObservableList
PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
Field Summary | |
---|---|
protected EObject |
eObject
The object owning the feature |
protected EStructuralFeature |
eStructuralFeature
The structural feature |
protected Adapter |
listener
The listener attached |
Fields inherited from class org.eclipse.core.databinding.observable.list.ObservableList |
---|
wrappedList |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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)
|
protected void |
addListener(java.lang.Object arg0,
IObservablesListener arg1)
|
void |
clear()
|
protected java.lang.Object |
clone()
|
void |
dispose()
|
protected void |
fireEvent(ObservableEvent arg0)
|
protected void |
firstListenerAdded()
|
java.lang.Object |
getObserved()
|
Realm |
getRealm()
|
protected boolean |
hasListeners()
|
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)
|
protected void |
removeListener(java.lang.Object arg0,
IObservablesListener arg1)
|
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()
|
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 org.eclipse.core.databinding.observable.AbstractObservable |
---|
addChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener |
Methods inherited from class java.lang.Object |
---|
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 |
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
---|
addChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener |
Field Detail |
---|
protected EObject eObject
protected EStructuralFeature eStructuralFeature
protected Adapter listener
Constructor Detail |
---|
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 featureMethod Detail |
---|
protected void firstListenerAdded()
protected void lastListenerRemoved()
public void dispose()
dispose
in interface IObservable
dispose
in class ObservableList
protected final java.util.List<java.lang.Object> wrappedList()
public java.lang.Object getObserved()
getObserved
in interface IObserving
public boolean add(java.lang.Object object)
add
in interface java.util.Collection
add
in interface java.util.List
add
in interface IObservableList
add
in class ObservableList
public void add(int index, java.lang.Object object)
add
in interface java.util.List
add
in class ObservableList
public boolean addAll(java.util.Collection collection)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in interface IObservableList
addAll
in class ObservableList
public boolean addAll(int index, java.util.Collection collection)
addAll
in interface java.util.List
addAll
in interface IObservableList
addAll
in class ObservableList
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
set
in interface IObservableList
set
in class ObservableList
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in interface IObservableList
remove
in class ObservableList
public boolean remove(java.lang.Object element)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in interface IObservableList
remove
in class ObservableList
public boolean removeAll(java.util.Collection collection)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
removeAll
in interface IObservableList
removeAll
in class ObservableList
public boolean retainAll(java.util.Collection collection)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
retainAll
in interface IObservableList
retainAll
in class ObservableList
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class ObservableList
public java.lang.Object move(int newPosition, int oldPosition)
EList
move
in interface IObservableList
move
in class ObservableList
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()
toString
in class ObservableList
protected void addListener(java.lang.Object arg0, IObservablesListener arg1)
protected void removeListener(java.lang.Object arg0, IObservablesListener arg1)
protected boolean hasListeners()
protected void fireEvent(ObservableEvent arg0)
public Realm getRealm()
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
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 |