|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
org.eclipse.core.databinding.observable.list.AbstractObservableList
org.eclipse.core.databinding.observable.list.MultiList
public class MultiList
An observable list backed by an array of observable lists. This class
supports all removal methods (including clear()), as well as the
set(int, Object) method. All other mutator methods (addition methods
and move(int, int)) throw an UnsupportedOperationException.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
MultiList(IObservableList[] lists)
Constructs a MultiList in the default realm, and backed by the given observable lists. |
|
MultiList(IObservableList[] lists,
java.lang.Object elementType)
Constructs a MultiList in the default realm backed by the given observable lists. |
|
MultiList(Realm realm,
IObservableList[] lists)
Constructs a MultiList belonging to the given realm, and backed by the given observable lists. |
|
MultiList(Realm realm,
IObservableList[] lists,
java.lang.Object elementType)
Constructs a MultiList belonging to the given realm, and backed by the given observable lists. |
|
| Method Summary | |
|---|---|
void |
add(int index,
java.lang.Object o)
|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
void |
dispose()
Disposes of this observable object, removing all listeners registered with this object, and all listeners this object might have registered on other objects. |
protected int |
doGetSize()
|
boolean |
equals(java.lang.Object o)
|
protected void |
firstListenerAdded()
|
java.lang.Object |
get(int index)
|
java.lang.Object |
getElementType()
Returns the element type of this observable collection, or null if this observable collection is untyped. |
int |
hashCode()
|
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
|
boolean |
isStale()
Returns whether the state of this observable is stale and is expected to change soon. |
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
protected void |
lastListenerRemoved()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
move(int oldIndex,
int newIndex)
Moves the element located at oldIndex to
newIndex. |
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object o)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
| Methods inherited from class org.eclipse.core.databinding.observable.list.AbstractObservableList |
|---|
addChangeListener, addDisposeListener, addListChangeListener, addStaleListener, checkRealm, containsAll, fireChange, fireListChange, fireStale, getRealm, hasListeners, isDisposed, removeChangeListener, removeDisposeListener, removeListChangeListener, removeStaleListener, size |
| Methods inherited from class java.util.AbstractList |
|---|
listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.databinding.observable.list.IObservableList |
|---|
listIterator, subList |
| Constructor Detail |
|---|
public MultiList(IObservableList[] lists)
lists - the array of observable lists backing this MultiList.
public MultiList(IObservableList[] lists,
java.lang.Object elementType)
lists - the array of observable lists backing this MultiList.elementType - element type of the constructed list.
public MultiList(Realm realm,
IObservableList[] lists)
realm - the observable's realmlists - the array of observable lists backing this MultiList
public MultiList(Realm realm,
IObservableList[] lists,
java.lang.Object elementType)
realm - the observable's realmlists - the array of observable lists backing this MultiListelementType - element type of the constructed list.| Method Detail |
|---|
protected void firstListenerAdded()
firstListenerAdded in class AbstractObservableListprotected void lastListenerRemoved()
lastListenerRemoved in class AbstractObservableListprotected int doGetSize()
doGetSize in class AbstractObservableListpublic java.lang.Object getElementType()
IObservableCollectionnull if this observable collection is untyped.
null if this observable collection is untyped.public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listadd in interface IObservableListadd in class AbstractObservableList
public void add(int index,
java.lang.Object o)
add in interface java.util.Listadd in class java.util.AbstractListpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.ListaddAll in interface IObservableListaddAll in class AbstractObservableList
public boolean addAll(int index,
java.util.Collection c)
addAll in interface java.util.ListaddAll in interface IObservableListaddAll in class AbstractObservableListpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Listclear in class java.util.AbstractListpublic java.lang.Object get(int index)
get in interface java.util.Listget in interface IObservableListget in class java.util.AbstractListpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Listcontains in interface IObservableListcontains in class AbstractObservableListpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Listequals in interface IObservableListequals in class AbstractObservableListpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in interface IObservableListhashCode in class AbstractObservableListpublic int indexOf(java.lang.Object o)
indexOf in interface java.util.ListindexOf in interface IObservableListindexOf in class AbstractObservableListpublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.ListisEmpty in interface IObservableListisEmpty in class AbstractObservableListpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Listiterator in interface IObservableListiterator in class AbstractObservableListpublic int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.ListlastIndexOf in interface IObservableListlastIndexOf in class AbstractObservableListpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.ListlistIterator in interface IObservableListlistIterator in class java.util.AbstractList
public java.lang.Object move(int oldIndex,
int newIndex)
AbstractObservableListoldIndex to
newIndex. This method is equivalent to calling
add(newIndex, remove(oldIndex)).
Subclasses should override this method to deliver list change
notification for the remove and add operations in the same
ListChangeEvent, as this allows ListDiff.accept(ListDiffVisitor)
to recognize the operation as a move.
move in interface IObservableListmove in class AbstractObservableListoldIndex - the element's position before the move. Must be within the
range 0 <= oldIndex < size().newIndex - the element's position after the move. Must be within the
range 0 <= newIndex < size().
ListDiffVisitor.handleMove(int, int, Object),
ListDiff.accept(ListDiffVisitor)public boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Listremove in interface IObservableListremove in class AbstractObservableListpublic java.lang.Object remove(int index)
remove in interface java.util.Listremove in interface IObservableListremove in class java.util.AbstractListpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.ListremoveAll in interface IObservableListremoveAll in class AbstractObservableListpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.ListretainAll in interface IObservableListretainAll in class AbstractObservableList
public java.lang.Object set(int index,
java.lang.Object o)
set in interface java.util.Listset in interface IObservableListset in class java.util.AbstractListpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in interface IObservableListtoArray in class AbstractObservableListpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.ListtoArray in interface IObservableListtoArray in class AbstractObservableListpublic boolean isStale()
IObservable
isStale in interface IObservableisStale in class AbstractObservableListpublic void dispose()
IObservable
dispose in interface IObservabledispose in class AbstractObservableList
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.