|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 ITableModelFilter
ITableModelFilter.getModel()
public void setRowFilter(RowFilter newValue)
ITableModelFilter
setRowFilter
in interface ITableModelFilter
public int convertRowIndexToModel(int index)
public int convertRowIndexToView(int index)
public Class<?> getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public void setValueAt(Object value, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |