org.springframework.binding.value.support
Class ObservableEventList
java.lang.Object
ca.odell.glazedlists.AbstractEventList<E>
ca.odell.glazedlists.TransformedList
org.springframework.binding.value.support.ObservableEventList
- All Implemented Interfaces:
- ca.odell.glazedlists.event.ListEventListener, ca.odell.glazedlists.EventList, Iterable, Collection, EventListener, List, ListModel, ObservableList
public class ObservableEventList
- extends ca.odell.glazedlists.TransformedList
- implements ObservableList
This class provides an implementation of EventList
that also implements the
ObservableList
interface so that it can be used by an AbstractForm as the list
of editable objects.
- Author:
- Larry Streepy
Fields inherited from class ca.odell.glazedlists.TransformedList |
source |
Fields inherited from class ca.odell.glazedlists.AbstractEventList |
publisher, readWriteLock, updates |
Methods inherited from class ca.odell.glazedlists.TransformedList |
add, addAll, clear, dispose, get, getSourceIndex, remove, removeAll, retainAll, set, size |
Methods inherited from class ca.odell.glazedlists.AbstractEventList |
add, addAll, addListEventListener, contains, containsAll, equals, getPublisher, getReadWriteLock, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeListEventListener, subList, toArray, toArray, toString |
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 |
listenerList
protected EventListenerList listenerList
ObservableEventList
public ObservableEventList(ca.odell.glazedlists.EventList source)
- Creates a
ObservableEventList
on the specified source event list.
isWritable
protected boolean isWritable()
- Gets whether the source
EventList
is writable via this API.
- Overrides:
isWritable
in class ca.odell.glazedlists.TransformedList
- Returns:
- always true
listChanged
public void listChanged(ca.odell.glazedlists.event.ListEvent listChanges)
- Specified by:
listChanged
in interface ca.odell.glazedlists.event.ListEventListener
- Specified by:
listChanged
in class ca.odell.glazedlists.TransformedList
getIndexAdapter
public IndexAdapter getIndexAdapter(int index)
- Specified by:
getIndexAdapter
in interface ObservableList
getSize
public int getSize()
- Specified by:
getSize
in interface ListModel
getElementAt
public Object getElementAt(int index)
- Specified by:
getElementAt
in interface ListModel
addListDataListener
public void addListDataListener(ListDataListener l)
- Specified by:
addListDataListener
in interface ListModel
removeListDataListener
public void removeListDataListener(ListDataListener l)
- Specified by:
removeListDataListener
in interface ListModel
fireContentsChanged
protected void fireContentsChanged(Object source,
int index0,
int index1)
AbstractListModel
subclasses must call this method after one
or more elements of the list change. The changed elements are specified by the
closed interval index0, index1 -- the endpoints are included. Note that index0 need
not be less than or equal to index1.
- Parameters:
source
- the ListModel
that changed, typically "this"index0
- one end of the new intervalindex1
- the other end of the new interval- See Also:
EventListenerList
,
DefaultListModel
fireIntervalAdded
protected void fireIntervalAdded(Object source,
int index0,
int index1)
AbstractListModel
subclasses must call this method after one
or more elements are added to the model. The new elements are specified by a closed
interval index0, index1 -- the enpoints are included. Note that index0 need not be
less than or equal to index1.
- Parameters:
source
- the ListModel
that changed, typically "this"index0
- one end of the new intervalindex1
- the other end of the new interval- See Also:
EventListenerList
,
DefaultListModel
fireIntervalRemoved
protected void fireIntervalRemoved(Object source,
int index0,
int index1)
AbstractListModel
subclasses must call this method after one
or more elements are removed from the model. index0
and
index1
are the end points of the interval that's been removed. Note
that index0
need not be less than or equal to index1
.
- Parameters:
source
- the ListModel
that changed, typically "this"index0
- one end of the removed interval, including index0
index1
- the other end of the removed interval, including index1
- See Also:
EventListenerList
,
DefaultListModel
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.