public class SorterFilterTableModel extends AbstractIndexTableModel implements ISorterFilterTableModel
Modifier and Type | Field and Description |
---|---|
protected boolean |
doFilter |
protected java.util.Vector |
filter |
static int |
PAUSE_DISPLAYING_OFF |
protected boolean |
pauseDisplaying |
protected int |
pauseRow |
protected int |
sortColumn |
protected java.util.Vector |
sortColumns |
protected int |
sortDirection |
indexList
delegate
ASCENDING, DESCENDING, NONE
Constructor and Description |
---|
SorterFilterTableModel(javax.swing.table.TableModel delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addMouseListener(javax.swing.JTable table) |
java.util.Vector |
getFilter() |
int |
getSortColumn() |
int |
getSortDirection() |
boolean |
isDoFilter() |
boolean |
isDoSort() |
boolean |
isPausedDisplaying() |
void |
renewIndex() |
void |
setDoFilter(boolean doFilter) |
void |
setFilter(java.util.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) |
getRowCount, getValueAt, mapRow, setValueAt, tableChanged
getColumnClass, getColumnCount, getColumnName, getDelegate, isCellEditable
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static final int PAUSE_DISPLAYING_OFF
protected java.util.Vector filter
protected boolean doFilter
protected java.util.Vector sortColumns
protected int sortColumn
protected int sortDirection
protected boolean pauseDisplaying
protected int pauseRow
public SorterFilterTableModel(javax.swing.table.TableModel delegate)
public void renewIndex()
public void tableRowsDeleted(int column, int firstRow, int lastRow)
tableRowsDeleted
in class AbstractIndexTableModel
public void tableRowsInserted(int column, int firstRow, int lastRow)
AbstractIndexTableModel
tableRowsInserted
in class AbstractIndexTableModel
public void tableRowsUpdated(int column, int firstRow, int lastRow)
tableRowsUpdated
in class AbstractIndexTableModel
public void addMouseListener(javax.swing.JTable table)
public int getSortColumn()
getSortColumn
in interface ISorterFilterTableModel
public void setSortColumn(int sortColumn)
setSortColumn
in interface ISorterFilterTableModel
public int getSortDirection()
getSortDirection
in interface ISorterFilterTableModel
public void setSortDirection(int sortDirection)
setSortDirection
in interface ISorterFilterTableModel
public boolean isDoSort()
public void setFilter(java.util.Vector filter)
setFilter
in interface ISorterFilterTableModel
filter
- A Vector of filter expressionspublic java.util.Vector getFilter()
getFilter
in interface ISorterFilterTableModel
public boolean isDoFilter()
isDoFilter
in interface ISorterFilterTableModel
public void setDoFilter(boolean doFilter)
setDoFilter
in interface ISorterFilterTableModel
public boolean isPausedDisplaying()
public void setPauseDisplaying(boolean pauseDisplaying)