public class MultiList extends AbstractObservableList
clear()), as well as the
set(int, Object) method. All other mutator methods (addition methods
and move(int, int)) throw an UnsupportedOperationException.modCount| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
addChangeListener, addDisposeListener, addListChangeListener, addStaleListener, checkRealm, containsAll, fireChange, fireListChange, fireStale, getRealm, hasListeners, isDisposed, removeChangeListener, removeDisposeListener, removeListChangeListener, removeStaleListener, sizelistIterator, removeRange, subListtoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitlistIterator, subListpublic 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 MultiListpublic 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.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 untypedpublic boolean add(Object o)
add in interface Collectionadd in interface Listadd in interface IObservableListadd in class AbstractObservableListpublic 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 AbstractObservableListpublic 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 AbstractListpublic 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 AbstractObservableListpublic 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()
IObservableisStale in interface IObservableisStale in class AbstractObservableListpublic void dispose()
IObservabledispose in interface IObservabledispose in class AbstractObservableList
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.