Jadex 0.96

jadex.util.jtable
Class SorterFilterTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by jadex.util.jtable.DelegateTableModel
          extended by jadex.util.jtable.AbstractIndexTableModel
              extended by jadex.util.jtable.SorterFilterTableModel
All Implemented Interfaces:
ISorterFilterTableModel, Serializable, EventListener, TableModelListener, TableModel

public class SorterFilterTableModel
extends AbstractIndexTableModel
implements ISorterFilterTableModel

See Also:
Serialized Form

Field Summary
static int PAUSE_DISPLAYING_OFF
           
 
Fields inherited from interface jadex.util.jtable.ISorterFilterTableModel
ASCENDING, DESCENDING, NONE
 
Constructor Summary
SorterFilterTableModel(TableModel delegate)
           
 
Method Summary
 void addMouseListener(JTable table)
           
 Vector getFilter()
           
 int getSortColumn()
           
 int getSortDirection()
           
 boolean isDoFilter()
           
 boolean isDoSort()
           
 boolean isPausedDisplaying()
           
 void renewIndex()
           
 void setDoFilter(boolean doFilter)
           
 void setFilter(Vector filter)
          Filter the table using the values in the given vector.
 void setPauseDisplaying(boolean pauseDisplaying)
           
 void setSortColumn(int sortColumn)
           
 void setSortDirection(int sortDirection)
           
 void tableRowsDeleted(int column, int firstRow, int lastRow)
           
 void tableRowsInserted(int column, int firstRow, int lastRow)
          Filter the model.
 void tableRowsUpdated(int column, int firstRow, int lastRow)
           
 
Methods inherited from class jadex.util.jtable.AbstractIndexTableModel
getRowCount, getValueAt, mapRow, setValueAt, tableChanged
 
Methods inherited from class jadex.util.jtable.DelegateTableModel
getColumnClass, getColumnCount, getColumnName, getDelegate, isCellEditable
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Field Detail

PAUSE_DISPLAYING_OFF

public static final int PAUSE_DISPLAYING_OFF
See Also:
Constant Field Values
Constructor Detail

SorterFilterTableModel

public SorterFilterTableModel(TableModel delegate)
Method Detail

renewIndex

public void renewIndex()

tableRowsDeleted

public void tableRowsDeleted(int column,
                             int firstRow,
                             int lastRow)
Specified by:
tableRowsDeleted in class AbstractIndexTableModel

tableRowsInserted

public void tableRowsInserted(int column,
                              int firstRow,
                              int lastRow)
Description copied from class: AbstractIndexTableModel
Filter the model. Subclasses should implement this methods to provide the filter logic.

Specified by:
tableRowsInserted in class AbstractIndexTableModel

tableRowsUpdated

public void tableRowsUpdated(int column,
                             int firstRow,
                             int lastRow)
Specified by:
tableRowsUpdated in class AbstractIndexTableModel

addMouseListener

public void addMouseListener(JTable table)

getSortColumn

public int getSortColumn()
Specified by:
getSortColumn in interface ISorterFilterTableModel

setSortColumn

public void setSortColumn(int sortColumn)
Specified by:
setSortColumn in interface ISorterFilterTableModel

getSortDirection

public int getSortDirection()
Specified by:
getSortDirection in interface ISorterFilterTableModel

setSortDirection

public void setSortDirection(int sortDirection)
Specified by:
setSortDirection in interface ISorterFilterTableModel

isDoSort

public boolean isDoSort()

setFilter

public void setFilter(Vector filter)
Filter the table using the values in the given vector.

Specified by:
setFilter in interface ISorterFilterTableModel
Parameters:
filter - A Vector of filter expressions

getFilter

public Vector getFilter()
Specified by:
getFilter in interface ISorterFilterTableModel

isDoFilter

public boolean isDoFilter()
Specified by:
isDoFilter in interface ISorterFilterTableModel

setDoFilter

public void setDoFilter(boolean doFilter)
Specified by:
setDoFilter in interface ISorterFilterTableModel

isPausedDisplaying

public boolean isPausedDisplaying()

setPauseDisplaying

public void setPauseDisplaying(boolean pauseDisplaying)

Jadex 0.96

Submit a bug or feature
For further API reference and developer documentation, see the Jadex User Guide and the Jadex Tutorial. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, and working code examples.

Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.