public class DefaultFilterTableModel extends Object implements FilterTableModel
Constructor and Description |
---|
DefaultFilterTableModel(TableModel backend,
int filterColumn) |
Modifier and Type | Method and Description |
---|---|
void |
addTableModelListener(TableModelListener l) |
void |
applyFilter() |
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
Filter |
getFilter() |
int |
getFilterColumn() |
CompoundFilter |
getFilters() |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
int |
mapFromModel(int row)
Maps backend tablemodel row numbers to row numbers from the public view.
|
int |
mapToModel(int row)
Maps public row numbers to row numbers from the parent table model.
|
void |
removeTableModelListener(TableModelListener l) |
void |
setFilters(CompoundFilter filters) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
public DefaultFilterTableModel(TableModel backend, int filterColumn)
public Filter getFilter()
getFilter
in interface FilterTableModel
public CompoundFilter getFilters()
public void setFilters(CompoundFilter filters)
public void applyFilter()
public int getFilterColumn()
getFilterColumn
in interface FilterTableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
public void addTableModelListener(TableModelListener l)
addTableModelListener
in interface TableModel
public void removeTableModelListener(TableModelListener l)
removeTableModelListener
in interface TableModel
public int mapToModel(int row)
row
- the row to mappublic int mapFromModel(int row)
row
- the row to map