net.sourceforge.xwing
Class FilteringListModel
java.lang.Object
javax.swing.AbstractListModel
net.sourceforge.xwing.FilteringListModel
- All Implemented Interfaces:
- ListModel, Serializable
- Direct Known Subclasses:
- NodeTextListModel
- public abstract class FilteringListModel
- extends AbstractListModel
A base class for ListModel implementations that filter the
values retrieved from some underlying ListModel.
- Version:
- $Revision: 1.3 $
- Author:
- Scott Howlett
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteringListModel
public FilteringListModel(ListModel src)
- Create a new FilteringListModel.
- Parameters:
src
- The underlying ListModel that we filter.
getSize
public int getSize()
getElementAt
public Object getElementAt(int index)
readFilter
public abstract Object readFilter(Object src)
- Overridden by all derived classes to provide specific
filtering behavior.
- Parameters:
src
- The value from the underlying ListModel.
- Returns:
- The filtered value.
Copyright © 2003 The Xwing Project. All Rights Reserved.