|
||||||||||
| 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 feature
public EObjectObservableList(Realm realm,
EObject eObject,
EStructuralFeature eStructuralFeature)
realm - the realmeObject - the object instanceeStructuralFeature - the feature| Method Detail |
|---|
protected void firstListenerAdded()
protected void lastListenerRemoved()
public void dispose()
dispose in interface IObservabledispose in class ObservableListprotected final java.util.List<java.lang.Object> wrappedList()
public java.lang.Object getObserved()
getObserved in interface IObservingpublic boolean add(java.lang.Object object)
add in interface java.util.Collectionadd in interface java.util.Listadd in interface IObservableListadd in class ObservableList
public void add(int index,
java.lang.Object object)
add in interface java.util.Listadd in class ObservableListpublic boolean addAll(java.util.Collection collection)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in interface IObservableListaddAll in class ObservableList
public boolean addAll(int index,
java.util.Collection collection)
addAll in interface java.util.ListaddAll in interface IObservableListaddAll in class ObservableList
public java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.Listset in interface IObservableListset in class ObservableListpublic java.lang.Object remove(int index)
remove in interface java.util.Listremove in interface IObservableListremove in class ObservableListpublic boolean remove(java.lang.Object element)
remove in interface java.util.Collectionremove in interface java.util.Listremove in interface IObservableListremove in class ObservableListpublic boolean removeAll(java.util.Collection collection)
removeAll in interface java.util.CollectionremoveAll in interface java.util.ListremoveAll in interface IObservableListremoveAll in class ObservableListpublic boolean retainAll(java.util.Collection collection)
retainAll in interface java.util.CollectionretainAll in interface java.util.ListretainAll in interface IObservableListretainAll in class ObservableListpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class ObservableList
public java.lang.Object move(int newPosition,
int oldPosition)
EList
move in interface IObservableListmove in class ObservableListnewPosition - 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.Objectjava.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 | |||||||||