com.jgoodies.binding.list
Interface ObservableList<E>
- List, ListModel
- ArrayListModel<E>, LinkedListModel<E>
public interface ObservableList<E>
extends List, 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.
Copyright © 2002-2007 JGoodies Karsten Lentzsch. All Rights Reserved.