|
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
org.eclipse.core.databinding.observable.list.WritableList
Mutable observable list backed by an ArrayList.
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 |
|---|
| Fields inherited from class org.eclipse.core.databinding.observable.list.ObservableList |
|---|
wrappedList |
| Constructor Summary | |
|---|---|
WritableList()
Creates an empty writable list in the default realm with a null element type. |
|
WritableList(List toWrap,
Object elementType)
Construts a new instance with the default realm. |
|
WritableList(Realm realm)
Creates an empty writable list with a null element type. |
|
WritableList(Realm realm,
List toWrap,
Object elementType)
Creates a writable list containing elements of the given type, wrapping an existing client-supplied list. |
|
| Method Summary | |
|---|---|
void |
add(int index,
Object element)
|
boolean |
add(Object element)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
clear()
|
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
static WritableList |
withElementType(Object elementType)
|
| Methods inherited from class org.eclipse.core.databinding.observable.list.ObservableList |
|---|
addListChangeListener, contains, containsAll, dispose, equals, fireChange, fireListChange, get, getElementType, getterCalled, hashCode, indexOf, isEmpty, isStale, iterator, lastIndexOf, listIterator, listIterator, removeListChangeListener, setStale, size, subList, toArray, toArray, toString, updateWrappedList |
| 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 |
| Constructor Detail |
public WritableList()
null element type.
public WritableList(Realm realm)
null element type.
realm -
public WritableList(List toWrap,
Object elementType)
toWrap - elementType - can be null
public WritableList(Realm realm,
List toWrap,
Object elementType)
realm - toWrap - The java.utilList to wrapelementType - can be null| Method Detail |
public Object set(int index,
Object element)
set in interface IObservableListset in class ObservableListpublic Object remove(int index)
remove in interface IObservableListremove in class ObservableListpublic boolean add(Object element)
add in interface IObservableListadd in class ObservableList
public void add(int index,
Object element)
add in interface Listadd in class ObservableListpublic boolean addAll(Collection c)
addAll in interface IObservableListaddAll in class ObservableList
public boolean addAll(int index,
Collection c)
addAll in interface IObservableListaddAll in class ObservableListpublic boolean remove(Object o)
remove in interface IObservableListremove in class ObservableListpublic boolean removeAll(Collection c)
removeAll in interface IObservableListremoveAll in class ObservableListpublic boolean retainAll(Collection c)
retainAll in interface IObservableListretainAll in class ObservableListpublic void clear()
clear in interface Listclear in class ObservableListpublic static WritableList withElementType(Object elementType)
elementType - can be null
|
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.