|
Eclipse Platform Release 3.4 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A list whose changes can be tracked by list change listeners.
AbstractObservableList,
ObservableList| Method Summary | |
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. |
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object o)
|
Object |
get(int index)
|
Object |
getElementType()
|
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
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)
|
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)
|
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
| Methods inherited from interface java.util.List |
add, clear |
| Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
addChangeListener, addStaleListener, dispose, getRealm, isStale, removeChangeListener, removeStaleListener |
| Method Detail |
public void addListChangeListener(IListChangeListener listener)
listener - public void removeListChangeListener(IListChangeListener listener)
listener - public int size()
size in interface Listpublic boolean isEmpty()
isEmpty in interface Listpublic boolean contains(Object o)
contains in interface Listpublic Iterator iterator()
iterator in interface Listpublic Object[] toArray()
toArray in interface Listpublic Object[] toArray(Object[] a)
toArray in interface Listpublic boolean add(Object o)
add in interface Listpublic boolean remove(Object o)
remove in interface Listpublic boolean containsAll(Collection c)
containsAll in interface Listpublic boolean addAll(Collection c)
addAll in interface List
public boolean addAll(int index,
Collection c)
addAll in interface Listpublic boolean removeAll(Collection c)
removeAll in interface Listpublic boolean retainAll(Collection c)
retainAll in interface Listpublic boolean equals(Object o)
equals in interface Listpublic int hashCode()
hashCode in interface Listpublic Object get(int index)
get in interface List
public Object set(int index,
Object element)
set in interface List
public Object move(int oldIndex,
int newIndex)
oldIndex 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.
oldIndex - 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().
IndexOutOfBoundsException - if either argument is out of range (0 <= index < size()).ListDiffVisitor.handleMove(int, int, Object),
ListDiff.accept(ListDiffVisitor)public Object remove(int index)
remove in interface Listpublic int indexOf(Object o)
indexOf in interface Listpublic int lastIndexOf(Object o)
lastIndexOf in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int index)
listIterator in interface List
public List subList(int fromIndex,
int toIndex)
subList in interface Listpublic Object getElementType()
getElementType in interface IObservableCollectionnull if untyped
|
Eclipse Platform Release 3.4 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.