|
Eclipse Platform Release 3.7 |
|||||||||
| 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,
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,
Object elementType)
Constructs a MultiList belonging to the given realm, and backed by the given observable lists. |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object o)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
clear()
|
boolean |
contains(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(Object o)
|
protected void |
firstListenerAdded()
|
Object |
get(int index)
|
Object |
getElementType()
Returns the element type of this observable collection, or null if this observable collection is untyped. |
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
boolean |
isStale()
Returns whether the state of this observable is stale and is expected to change soon. |
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
protected void |
lastListenerRemoved()
|
ListIterator |
listIterator(int index)
|
Object |
move(int oldIndex,
int newIndex)
Moves the element located at oldIndex to
newIndex. |
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object o)
|
Object[] |
toArray()
|
Object[] |
toArray(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,
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,
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 Object getElementType()
IObservableCollectionnull if this observable collection is untyped.
null if this observable collection is untyped.public boolean add(Object o)
add in interface Collectionadd in interface Listadd in interface IObservableListadd in class AbstractObservableList
public void add(int index,
Object o)
add in interface Listadd in class AbstractListpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface ListaddAll in interface IObservableListaddAll in class AbstractObservableList
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in interface IObservableListaddAll in class AbstractObservableListpublic void clear()
clear in interface Collectionclear in interface Listclear in class AbstractListpublic Object get(int index)
get in interface Listget in interface IObservableListget in class AbstractListpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listcontains in interface IObservableListcontains in class AbstractObservableListpublic boolean equals(Object o)
equals in interface Collectionequals in interface Listequals in interface IObservableListequals in class AbstractObservableListpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in interface IObservableListhashCode in class AbstractObservableListpublic int indexOf(Object o)
indexOf in interface ListindexOf in interface IObservableListindexOf in class AbstractObservableListpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface ListisEmpty in interface IObservableListisEmpty in class AbstractObservableListpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listiterator in interface IObservableListiterator in class AbstractObservableListpublic int lastIndexOf(Object o)
lastIndexOf in interface ListlastIndexOf in interface IObservableListlastIndexOf in class AbstractObservableListpublic ListIterator listIterator(int index)
listIterator in interface ListlistIterator in interface IObservableListlistIterator in class AbstractList
public 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(Object o)
remove in interface Collectionremove in interface Listremove in interface IObservableListremove in class AbstractObservableListpublic Object remove(int index)
remove in interface Listremove in interface IObservableListremove in class AbstractListpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface ListremoveAll in interface IObservableListremoveAll in class AbstractObservableListpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface ListretainAll in interface IObservableListretainAll in class AbstractObservableList
public Object set(int index,
Object o)
set in interface Listset in interface IObservableListset in class AbstractListpublic Object[] toArray()
toArray in interface CollectiontoArray in interface ListtoArray in interface IObservableListtoArray in class AbstractObservableListpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface 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.7 |
|||||||||
| 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, 2011. All rights reserved.