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 |
indexListdelegateASCENDING, 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, tableChangedgetColumnClass, getColumnCount, getColumnName, getDelegate, isCellEditableaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic 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 AbstractIndexTableModelpublic void tableRowsInserted(int column,
int firstRow,
int lastRow)
AbstractIndexTableModeltableRowsInserted in class AbstractIndexTableModelpublic void tableRowsUpdated(int column,
int firstRow,
int lastRow)
tableRowsUpdated in class AbstractIndexTableModelpublic void addMouseListener(javax.swing.JTable table)
public int getSortColumn()
getSortColumn in interface ISorterFilterTableModelpublic void setSortColumn(int sortColumn)
setSortColumn in interface ISorterFilterTableModelpublic int getSortDirection()
getSortDirection in interface ISorterFilterTableModelpublic void setSortDirection(int sortDirection)
setSortDirection in interface ISorterFilterTableModelpublic boolean isDoSort()
public void setFilter(java.util.Vector filter)
setFilter in interface ISorterFilterTableModelfilter - A Vector of filter expressionspublic java.util.Vector getFilter()
getFilter in interface ISorterFilterTableModelpublic boolean isDoFilter()
isDoFilter in interface ISorterFilterTableModelpublic void setDoFilter(boolean doFilter)
setDoFilter in interface ISorterFilterTableModelpublic boolean isPausedDisplaying()
public void setPauseDisplaying(boolean pauseDisplaying)