com.jgoodies.binding.list
Interface ObservableList<E>

Type Parameters:
E - the type of the list elements
All Superinterfaces:
java.util.Collection<E>, java.lang.Iterable<E>, java.util.List<E>, javax.swing.ListModel
All Known Implementing Classes:
ArrayListModel, LinkedListModel

public interface ObservableList<E>
extends java.util.List<E>, javax.swing.ListModel

Combines the List and ListModel interfaces. Implementations can be used to bind lists to list-based user interface components like JList, JTable and JComboBox.

The JGoodies Data Binding ships with two predefined implementations: ArrayListModel and LinkedListModel.

See also the class comment in SelectionInList that discusses the advantages you gain if you add ListModel capabilities to a List.

TODO: Check if this type is really necessary; remove it if obsolete. Without doubt the ObservableList implementations are really useful, among others the predefined ArrayListModel and LinkedListModel. It's just that these implementations are typically used as List and exposed as ListModel, and so there may be no need for the ObservableList interface.

Version:
$Revision: 1.6 $
Author:
Karsten Lentzsch
See Also:
ArrayListModel, LinkedListModel, SelectionInList

Method Summary
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 



Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.