jadex.util.jtable
Class SorterFilterTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jadex.util.jtable.DelegateTableModel
jadex.util.jtable.AbstractIndexTableModel
jadex.util.jtable.SorterFilterTableModel
- All Implemented Interfaces:
- ISorterFilterTableModel, Serializable, EventListener, TableModelListener, TableModel
public class SorterFilterTableModel
- extends AbstractIndexTableModel
- implements ISorterFilterTableModel
- See Also:
- Serialized Form
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
PAUSE_DISPLAYING_OFF
public static final int PAUSE_DISPLAYING_OFF
- See Also:
- Constant Field Values
SorterFilterTableModel
public SorterFilterTableModel(TableModel delegate)
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)
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.