public class DecoratingObservableList extends DecoratingObservableCollection implements IObservableList
| Constructor and Description |
|---|
DecoratingObservableList(IObservableList decorated,
boolean disposeDecoratedOnDispose)
Constructs a DecoratingObservableList which decorates the given
observable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object o) |
boolean |
addAll(int index,
Collection c) |
void |
addListChangeListener(IListChangeListener listener)
Adds the given list change listener to the list of list change listeners.
|
protected void |
addListener(Object listenerType,
IObservablesListener listener) |
protected Object |
clone() |
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 void |
fireChange() |
protected void |
fireEvent(ObservableEvent event) |
protected void |
fireListChange(ListDiff diff) |
protected void |
firstListenerAdded() |
Object |
get(int index) |
Realm |
getRealm() |
protected void |
handleListChange(ListChangeEvent event)
Called whenever a ListChangeEvent is received from the decorated
observable.
|
protected boolean |
hasListeners() |
int |
indexOf(Object o) |
int |
lastIndexOf(Object o) |
protected void |
lastListenerRemoved() |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
Object |
move(int oldIndex,
int newIndex)
Moves the element located at
oldIndex to
newIndex. |
Object |
remove(int index) |
void |
removeListChangeListener(IListChangeListener listener)
Removes the given list change listener from the list of list change listeners.
|
protected void |
removeListener(Object listenerType,
IObservablesListener listener) |
Object |
set(int index,
Object element) |
List |
subList(int fromIndex,
int toIndex) |
add, addAll, clear, contains, containsAll, equals, getElementType, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringgetDecorated, getterCalled, handleStaleEvent, isStaleaddChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListenerfinalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, contains, containsAll, equals, getElementType, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayaddChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListenerpublic DecoratingObservableList(IObservableList decorated, boolean disposeDecoratedOnDispose)
decorated - the observable list being decorateddisposeDecoratedOnDispose - public void addListChangeListener(IListChangeListener listener)
IObservableListaddListChangeListener in interface IObservableListpublic void removeListChangeListener(IListChangeListener listener)
IObservableListremoveListChangeListener in interface IObservableListprotected void fireListChange(ListDiff diff)
protected void fireChange()
fireChange in class AbstractObservableprotected void firstListenerAdded()
firstListenerAdded in class DecoratingObservableprotected void lastListenerRemoved()
lastListenerRemoved in class DecoratingObservableprotected void handleListChange(ListChangeEvent event)
event - the change event received from the decorated observablepublic boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in interface IObservableListpublic Object get(int index)
get in interface Listget in interface IObservableListpublic int indexOf(Object o)
indexOf in interface ListindexOf in interface IObservableListpublic int lastIndexOf(Object o)
lastIndexOf in interface ListlastIndexOf in interface IObservableListpublic ListIterator listIterator()
listIterator in interface ListlistIterator in interface IObservableListpublic ListIterator listIterator(int index)
listIterator in interface ListlistIterator in interface IObservableListpublic Object move(int oldIndex, int newIndex)
IObservableListoldIndex to
newIndex. This method is equivalent to calling
add(newIndex, remove(oldIndex)).
Implementors should 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 IObservableListoldIndex - 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 Object remove(int index)
remove in interface Listremove in interface IObservableListpublic Object set(int index, Object element)
set in interface Listset in interface IObservableListpublic List subList(int fromIndex, int toIndex)
subList in interface ListsubList in interface IObservableListpublic void dispose()
IObservabledispose in interface IObservabledispose in class DecoratingObservableCollectionprotected void addListener(Object listenerType, IObservablesListener listener)
listenerType - listener - protected void removeListener(Object listenerType, IObservablesListener listener)
listenerType - listener - protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
public Realm getRealm()
protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.