Eclipse Platform
Release 3.3

org.eclipse.core.databinding.observable.list
Interface IObservableList

All Superinterfaces:
Collection, IObservable, IObservableCollection, List
All Known Implementing Classes:
AbstractObservableList, ObservableList

public interface IObservableList
extends List, IObservableCollection

A list whose changes can be tracked by list change listeners.

This interface is not intended to be implemented by clients. Clients should instead subclass one of the framework classes that implement this interface. Note that direct implementers of this interface outside of the framework will be broken in future releases when methods are added to this interface.

Since:
1.0

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 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

addListChangeListener

public void addListChangeListener(IListChangeListener listener)
Adds the given list change listener to the list of list change listeners.

Parameters:
listener -

removeListChangeListener

public void removeListChangeListener(IListChangeListener listener)
Removes the given list change listener from the list of list change listeners. Has no effect if the given listener is not registered as a list change listener.

Parameters:
listener -

size

public int size()
Specified by:
size in interface List
"TrackedGetter"

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface List
"TrackedGetter"

contains

public boolean contains(Object o)
Specified by:
contains in interface List
"TrackedGetter"

iterator

public Iterator iterator()
Specified by:
iterator in interface List
"TrackedGetter"

toArray

public Object[] toArray()
Specified by:
toArray in interface List
"TrackedGetter"

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface List
"TrackedGetter"

add

public boolean add(Object o)
Specified by:
add in interface List

remove

public boolean remove(Object o)
Specified by:
remove in interface List

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface List
"TrackedGetter"

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface List

addAll

public boolean addAll(int index,
                      Collection c)
Specified by:
addAll in interface List

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface List

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface List

equals

public boolean equals(Object o)
Specified by:
equals in interface List
"TrackedGetter"

hashCode

public int hashCode()
Specified by:
hashCode in interface List
"TrackedGetter"

get

public Object get(int index)
Specified by:
get in interface List
"TrackedGetter"

set

public Object set(int index,
                  Object element)
Specified by:
set in interface List

remove

public Object remove(int index)
Specified by:
remove in interface List

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List
"TrackedGetter"

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List
"TrackedGetter"

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List
"TrackedGetter"

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List
"TrackedGetter"

subList

public List subList(int fromIndex,
                    int toIndex)
Specified by:
subList in interface List
"TrackedGetter"

getElementType

public Object getElementType()
Specified by:
getElementType in interface IObservableCollection
Returns:
the type of the elements or null if untyped

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.