Class RowMapperTableModel
java.lang.Object
org.pentaho.reporting.libraries.designtime.swing.table.RowMapperTableModel
- All Implemented Interfaces:
TableModel
- Direct Known Subclasses:
GroupedTableModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidgetColumnClass(int columnIndex) intgetColumnName(int columnIndex) intgetValueAt(int rowIndex, int columnIndex) booleanisCellEditable(int rowIndex, int columnIndex) protected abstract booleanisFiltered(int row) intmapFromModel(int row) Maps parent tablemodel row numbers to row numbers from the public view.intmapToModel(int row) Maps public row numbers to row numbers from the parent table model.protected voidvoidvoidsetValueAt(Object aValue, int rowIndex, int columnIndex)
-
Constructor Details
-
RowMapperTableModel
-
-
Method Details
-
fireTableModelEvent
-
recomputeRowCount
protected void recomputeRowCount() -
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel
-
addTableModelListener
- Specified by:
addTableModelListenerin interfaceTableModel
-
removeTableModelListener
- Specified by:
removeTableModelListenerin interfaceTableModel
-
mapToModel
public int mapToModel(int row) Maps public row numbers to row numbers from the parent table model.- Parameters:
row- the row to map- Returns:
- the corresponding row in the parent table model.
-
isFiltered
protected abstract boolean isFiltered(int row) -
mapFromModel
public int mapFromModel(int row) Maps parent tablemodel row numbers to row numbers from the public view.- Parameters:
row- the row to map- Returns:
- the corresponding row in the public view.
-