Package slash.navigation.gui.models
Class FilteringTableModel<E>
java.lang.Object
javax.swing.table.AbstractTableModel
slash.navigation.gui.models.FilteringTableModel<E>
- All Implemented Interfaces:
Serializable,TableModel
- Direct Known Subclasses:
FilteringPositionsModel
Acts as a
TableModel that filters FilteringTableModels- Author:
- Christian Pesch
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected TableModelintgetValueAt(int rowIndex, int columnIndex) booleanisCellEditable(int rowIndex, int columnIndex) protected intmapRow(int rowIndex) int[]mapRows(int[] rowIndices) voidsetFilterPredicate(FilterPredicate<E> predicate) voidsetValueAt(Object aValue, int rowIndex, int columnIndex) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
Method Details
-
mapRow
protected int mapRow(int rowIndex) -
mapRows
public int[] mapRows(int[] rowIndices) -
getDelegate
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-