| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
net.coderazzi.filters.artifacts.TableModelFilter
public class TableModelFilter
Implementation of a ITableModelFilter
It tries to mimic the behaviour in the Java 6 model. In special, updates to the model do not imply reapplying the filter in the modified rows.
| Field Summary | 
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel | 
|---|
listenerList | 
| Constructor Summary | |
|---|---|
TableModelFilter(TableModel model)
Constructor.  | 
|
| Method Summary | |
|---|---|
 int | 
convertRowIndexToModel(int index)
Returns the location of index in terms of the underlying model.  | 
 int | 
convertRowIndexToView(int index)
Returns the location of index in terms of the view.  | 
 Class<?> | 
getColumnClass(int columnIndex)
 | 
 int | 
getColumnCount()
 | 
 String | 
getColumnName(int column)
 | 
 TableModel | 
getModel()
Returns the underlying model.  | 
 int | 
getRowCount()
 | 
 Object | 
getValueAt(int rowIndex,
           int columnIndex)
 | 
 boolean | 
isCellEditable(int rowIndex,
               int columnIndex)
 | 
 void | 
setModel(TableModel tableModel)
Updates the model used beneath the TableModelFilter.  | 
 void | 
setRowFilter(RowFilter newValue)
Sets the filter that determines which rows, if any, should be hidden from the view.  | 
 void | 
setValueAt(Object value,
           int rowIndex,
           int columnIndex)
 | 
| 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 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TableModelFilter(TableModel model)
| Method Detail | 
|---|
public void setModel(TableModel tableModel)
public TableModel getModel()
ITableModelFilter
getModel in interface ITableModelFilterITableModelFilter.getModel()public void setRowFilter(RowFilter newValue)
ITableModelFilter
setRowFilter in interface ITableModelFilterpublic int convertRowIndexToModel(int index)
public int convertRowIndexToView(int index)
public Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic int getRowCount()
getRowCount in interface TableModelpublic Object getValueAt(int rowIndex, int columnIndex)
getValueAt in interface TableModel
public boolean isCellEditable(int rowIndex,
                              int columnIndex)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModel
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||