com.rapidminer.gui.tools
Class FilterableListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by com.rapidminer.gui.tools.FilterableListModel
All Implemented Interfaces:
FilterListener, java.io.Serializable, javax.swing.ListModel

public class FilterableListModel
extends javax.swing.AbstractListModel
implements FilterListener

A filterable list model for JList components. The method valueChanged(String) updates the filter, i.e. the visible list is filtered according to the given filter value. If the value is null, the view is set back to include all actual kept list values.

Author:
Tobias Malbrecht
See Also:
Serialized Form

Nested Class Summary
static class FilterableListModel.FilterCondition
           
 
Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
FilterableListModel()
           
 
Method Summary
 void addCondition(FilterableListModel.FilterCondition c)
           
 void addElement(java.lang.Object o)
           
 boolean contains(java.lang.Object o)
           
 java.lang.Object getElementAt(int index)
           
 int getSize()
           
 int indexOf(java.lang.Object o)
           
 void removeCondition(FilterableListModel.FilterCondition c)
           
 void removeElement(java.lang.Object o)
           
 void removeElementAt(int index)
           
 void valueChanged(java.lang.String value)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterableListModel

public FilterableListModel()
Method Detail

valueChanged

public void valueChanged(java.lang.String value)
Specified by:
valueChanged in interface FilterListener

addElement

public void addElement(java.lang.Object o)

removeElement

public void removeElement(java.lang.Object o)

contains

public boolean contains(java.lang.Object o)

removeElementAt

public void removeElementAt(int index)

getElementAt

public java.lang.Object getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel

indexOf

public int indexOf(java.lang.Object o)

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel

addCondition

public void addCondition(FilterableListModel.FilterCondition c)

removeCondition

public void removeCondition(FilterableListModel.FilterCondition c)


Copyright © 2001-2009 by Rapid-I