infovis.panel
Class FilteredColumnListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by infovis.panel.ColumnListModel
          extended by infovis.panel.FilteredColumnListModel
All Implemented Interfaces:
Serializable, EventListener, ComboBoxModel, TableModelListener, ListModel

public class FilteredColumnListModel
extends ColumnListModel
implements TableModelListener

Filtered ListModel for Columns.

Version:
$Revision: 1.17 $
Author:
Jean-Daniel Fekete
See Also:
Serialized Form

Constructor Summary
FilteredColumnListModel(Table table)
           
FilteredColumnListModel(Table table, ColumnFilter filter)
          Constructor for FilteredColumnListModel.
 
Method Summary
static FilteredTable filteredTable(Table table, ColumnFilter filter)
           
 Comparator getComparator()
           
 ColumnFilter getFilter()
          Returns the filter
 FilteredTable getFilterTable()
           
 void setComparator(Comparator comp)
           
 void setFilter(ColumnFilter filter)
          Sets the filter
 void tableChanged(TableModelEvent e)
           
 
Methods inherited from class infovis.panel.ColumnListModel
getElementAt, getSelectedItem, getSize, getTable, isNullAdded, setNullAdded, setSelectedItem
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

FilteredColumnListModel

public FilteredColumnListModel(Table table,
                               ColumnFilter filter)
Constructor for FilteredColumnListModel.

Parameters:
table - the table.
filter - the ColumnFilter.

FilteredColumnListModel

public FilteredColumnListModel(Table table)
Method Detail

getFilterTable

public FilteredTable getFilterTable()

filteredTable

public static FilteredTable filteredTable(Table table,
                                          ColumnFilter filter)

getFilter

public ColumnFilter getFilter()
Returns the filter

Returns:
the filter

setFilter

public void setFilter(ColumnFilter filter)
Sets the filter

Parameters:
filter - The filter

getComparator

public Comparator getComparator()

setComparator

public void setComparator(Comparator comp)

tableChanged

public void tableChanged(TableModelEvent e)
Specified by:
tableChanged in interface TableModelListener
Overrides:
tableChanged in class ColumnListModel
See Also:
TableModelListener.tableChanged(TableModelEvent)


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.