|
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 IObservableListlistener - public void removeListChangeListener(IListChangeListener listener)
IObservableList
removeListChangeListener in interface IObservableListlistener - protected void fireListChange(ListDiff diff)
public boolean contains(Object o)
contains in interface IObservableListpublic boolean containsAll(Collection c)
containsAll in interface IObservableListpublic boolean equals(Object o)
equals in interface IObservableListpublic int hashCode()
hashCode in interface IObservableListpublic boolean isEmpty()
isEmpty in interface IObservableListpublic Iterator iterator()
iterator in interface IObservableListpublic int size()
size in interface IObservableListpublic Object[] toArray()
toArray in interface IObservableListpublic Object[] toArray(Object[] a)
toArray in interface IObservableListpublic String toString()
public Object get(int index)
get in interface IObservableListpublic int indexOf(Object o)
indexOf in interface IObservableListpublic int lastIndexOf(Object o)
lastIndexOf in interface IObservableListpublic ListIterator listIterator()
listIterator in interface IObservableListpublic ListIterator listIterator(int index)
listIterator in interface IObservableList
public List subList(int fromIndex,
int toIndex)
subList in interface IObservableListprotected void getterCalled()
public Object set(int index,
Object element)
set in interface IObservableListpublic Object remove(int index)
remove in interface IObservableListpublic boolean add(Object o)
add in interface IObservableList
public void add(int index,
Object element)
add in interface Listpublic boolean addAll(Collection c)
addAll in interface IObservableList
public boolean addAll(int index,
Collection c)
addAll in interface IObservableListpublic boolean remove(Object o)
remove in interface IObservableListpublic boolean removeAll(Collection c)
removeAll in interface IObservableListpublic boolean retainAll(Collection c)
retainAll in interface IObservableListpublic void clear()
clear in interface Listpublic boolean isStale()
isStale in interface IObservablepublic 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 AbstractObservablepublic void dispose()
IObservable
dispose in interface IObservabledispose in class AbstractObservablepublic Object getElementType()
getElementType in interface IObservableListnull 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.