|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IObservableList
A list whose changes can be tracked by list change listeners.
AbstractObservableList,
ObservableList| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
addListChangeListener(IListChangeListener listener)
Adds the given list change listener to the list of list change listeners. |
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
get(int index)
|
java.lang.Object |
getElementType()
Returns the element type of this observable collection, or null if this observable collection is untyped. |
int |
hashCode()
|
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
move(int oldIndex,
int newIndex)
Moves the element located at oldIndex to
newIndex. |
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
void |
removeListChangeListener(IListChangeListener listener)
Removes the given list change listener from the list of list change listeners. |
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
| Methods inherited from interface java.util.List |
|---|
add, clear |
| Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
|---|
addChangeListener, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener |
| Method Detail |
|---|
void addListChangeListener(IListChangeListener listener)
listener - void removeListChangeListener(IListChangeListener listener)
listener - int size()
size in interface java.util.Collectionsize in interface java.util.Listboolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.Listboolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Listjava.util.Iterator iterator()
iterator in interface java.util.Collectioniterator in interface java.lang.Iterableiterator in interface java.util.Listjava.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.Listjava.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.Listboolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Listboolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Listboolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.Listboolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.List
boolean addAll(int index,
java.util.Collection c)
addAll in interface java.util.Listboolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.Listboolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.Listboolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Listequals in class java.lang.Objectint hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.ListhashCode in class java.lang.Objectjava.lang.Object get(int index)
get in interface java.util.List
java.lang.Object set(int index,
java.lang.Object element)
set in interface java.util.List
java.lang.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().
java.lang.IndexOutOfBoundsException - if either argument is out of range (0 <= index < size()).ListDiffVisitor.handleMove(int, int, Object),
ListDiff.accept(ListDiffVisitor)java.lang.Object remove(int index)
remove in interface java.util.Listint indexOf(java.lang.Object o)
indexOf in interface java.util.Listint lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.Listjava.util.ListIterator listIterator()
listIterator in interface java.util.Listjava.util.ListIterator listIterator(int index)
listIterator in interface java.util.List
java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.Listjava.lang.Object getElementType()
IObservableCollectionnull if this observable collection is untyped.
getElementType in interface IObservableCollectionnull if untyped
|
Eclipse Platform Release 3.6 |
|||||||||
| 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, 2010. All rights reserved.