Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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

All Superinterfaces:
Collection, IObservable, IObservableCollection, Iterable, List
All Known Subinterfaces:
ISWTObservableList, IViewerObservableList
All Known Implementing Classes:
AbstractObservableList, ComputedList, DecoratingObservableList, MultiList, ObservableList, WritableList

public interface IObservableList
extends List, IObservableCollection

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

Since:
1.0
See Also:
AbstractObservableList, ObservableList
Restriction:
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.

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 ()
          Returns the element type of this observable collection, or null if this observable collection is untyped.
 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, addDisposeListener, addStaleListener, dispose, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener
 

Method Detail

addListChangeListener

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

Parameters:
listener -

removeListChangeListener

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

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

isEmpty

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

contains

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

iterator

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

toArray

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

toArray

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

add

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

remove

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

containsAll

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

addAll

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

addAll

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

removeAll

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

retainAll

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

equals

boolean equals(
Object o)
Specified by:
equals in interface Collection
Specified by:
equals in interface List
Overrides:
equals in class Object
"TrackedGetter"

hashCode

int hashCode()
Specified by:
hashCode in interface Collection
Specified by:
hashCode in interface List
Overrides:
hashCode in class Object
"TrackedGetter"

get

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

set

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

move

Object move(int oldIndex,
            int newIndex)
Moves the element located at 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.

Parameters:
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().
Returns:
the element that was moved.
Throws:
IndexOutOfBoundsException - if either argument is out of range (0 <= index < size()).
Since:
1.1
See Also:
ListDiffVisitor.handleMove(int, int, Object), ListDiff.accept(ListDiffVisitor)

remove

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

indexOf

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

lastIndexOf

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

listIterator

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

listIterator

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

subList

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

getElementType

Object getElementType()
Description copied from interface: IObservableCollection
Returns the element type of this observable collection, or null if this observable collection is untyped.

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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire