|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.observable.ChangeManager
org.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.list.ObservableList
Abstract implementation of IObservableList
, based on an underlying regular list.
This class is thread safe. All state accessing methods must be invoked from
the current realm
. Methods for adding and removing
listeners may be invoked from any thread.
Field Summary | |
---|---|
protected List |
wrappedList
|
Constructor Summary | |
---|---|
protected |
ObservableList(List wrappedList,
Object elementType)
|
protected |
ObservableList(Realm realm,
List wrappedList,
Object elementType)
|
Method Summary | |
---|---|
void |
add(int index,
Object element)
|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
addListChangeListener(IListChangeListener listener)
Adds the given list change listener to the list of list change listeners. |
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
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. |
boolean |
equals(Object o)
|
protected void |
fireChange()
|
protected void |
fireListChange(ListDiff diff)
|
Object |
get(int index)
|
Object |
getElementType()
|
protected void |
getterCalled()
|
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
boolean |
isStale()
Returns the stale state. |
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
void |
removeListChangeListener(IListChangeListener listener)
Removes the given list change listener from the list of list change listeners. |
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
void |
setStale(boolean stale)
Sets the stale state. |
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
String |
toString()
|
protected void |
updateWrappedList(List newList)
|
Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable |
---|
addChangeListener, addListener, addStaleListener, checkRealm, fireEvent, fireStale, firstListenerAdded, getRealm, hasListeners, lastListenerRemoved, removeChangeListener, removeListener, removeStaleListener |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
---|
addChangeListener, addStaleListener, getRealm, removeChangeListener, removeStaleListener |
Field Detail |
protected List wrappedList
Constructor Detail |
protected ObservableList(List wrappedList, Object elementType)
protected ObservableList(Realm realm, List wrappedList, Object elementType)
Method Detail |
public void addListChangeListener(IListChangeListener listener)
IObservableList
addListChangeListener
in interface IObservableList
listener
- public void removeListChangeListener(IListChangeListener listener)
IObservableList
removeListChangeListener
in interface IObservableList
listener
- protected void fireListChange(ListDiff diff)
public boolean contains(Object o)
contains
in interface IObservableList
public boolean containsAll(Collection c)
containsAll
in interface IObservableList
public boolean equals(Object o)
equals
in interface IObservableList
public int hashCode()
hashCode
in interface IObservableList
public boolean isEmpty()
isEmpty
in interface IObservableList
public Iterator iterator()
iterator
in interface IObservableList
public int size()
size
in interface IObservableList
public Object[] toArray()
toArray
in interface IObservableList
public Object[] toArray(Object[] a)
toArray
in interface IObservableList
public String toString()
public Object get(int index)
get
in interface IObservableList
public int indexOf(Object o)
indexOf
in interface IObservableList
public int lastIndexOf(Object o)
lastIndexOf
in interface IObservableList
public ListIterator listIterator()
listIterator
in interface IObservableList
public ListIterator listIterator(int index)
listIterator
in interface IObservableList
public List subList(int fromIndex, int toIndex)
subList
in interface IObservableList
protected void getterCalled()
public Object set(int index, Object element)
set
in interface IObservableList
public Object remove(int index)
remove
in interface IObservableList
public boolean add(Object o)
add
in interface IObservableList
public void add(int index, Object element)
add
in interface List
public boolean addAll(Collection c)
addAll
in interface IObservableList
public boolean addAll(int index, Collection c)
addAll
in interface IObservableList
public boolean remove(Object o)
remove
in interface IObservableList
public boolean removeAll(Collection c)
removeAll
in interface IObservableList
public boolean retainAll(Collection c)
retainAll
in interface IObservableList
public void clear()
clear
in interface List
public boolean isStale()
isStale
in interface IObservable
public void setStale(boolean stale)
stale
- The stale state to list. This will fire a stale event if the
given boolean is true and this observable list was not already
stale.protected void fireChange()
fireChange
in class AbstractObservable
public void dispose()
IObservable
dispose
in interface IObservable
dispose
in class AbstractObservable
public Object getElementType()
getElementType
in interface IObservableList
null
if untypedprotected void updateWrappedList(List newList)
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.