org.springframework.richclient.list
Class SortedListModel
java.lang.Object
javax.swing.AbstractListModel
org.springframework.richclient.list.AbstractFilteredListModel
org.springframework.richclient.list.SortedListModel
- All Implemented Interfaces:
- Serializable, EventListener, ListDataListener, ListModel
public class SortedListModel
- extends AbstractFilteredListModel
- Author:
- Mathias Broekelmann
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SortedListModel
public SortedListModel(ListModel model)
SortedListModel
public SortedListModel(ListModel model,
Comparator comparator)
setComparator
public void setComparator(Comparator comparator)
reallocateIndexes
protected void reallocateIndexes()
- Internally called to reallocate the indexes. This method should be called when the filtered model changes its
element size
getElementIndex
public int getElementIndex(int sortedIndex)
- Returns the element index for a sorted index
- Overrides:
getElementIndex
in class AbstractFilteredListModel
- Parameters:
sortedIndex
- the sorted index
- Returns:
- the unsorted index of the filtered model
applyComparator
protected void applyComparator()
contentsChanged
public void contentsChanged(ListDataEvent e)
- Specified by:
contentsChanged
in interface ListDataListener
- Overrides:
contentsChanged
in class AbstractFilteredListModel
intervalAdded
public void intervalAdded(ListDataEvent e)
- Specified by:
intervalAdded
in interface ListDataListener
- Overrides:
intervalAdded
in class AbstractFilteredListModel
intervalRemoved
public void intervalRemoved(ListDataEvent e)
- Specified by:
intervalRemoved
in interface ListDataListener
- Overrides:
intervalRemoved
in class AbstractFilteredListModel
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.