Class RowMapperTableModel
java.lang.Object
org.pentaho.reporting.libraries.designtime.swing.table.RowMapperTableModel
- All Implemented Interfaces:
TableModel
- Direct Known Subclasses:
GroupedTableModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
getColumnClass
(int columnIndex) int
getColumnName
(int columnIndex) int
getValueAt
(int rowIndex, int columnIndex) boolean
isCellEditable
(int rowIndex, int columnIndex) protected abstract boolean
isFiltered
(int row) int
mapFromModel
(int row) Maps parent 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.protected void
void
void
setValueAt
(Object aValue, int rowIndex, int columnIndex)
-
Constructor Details
-
RowMapperTableModel
-
-
Method Details
-
fireTableModelEvent
-
recomputeRowCount
protected void recomputeRowCount() -
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
-
addTableModelListener
- Specified by:
addTableModelListener
in interfaceTableModel
-
removeTableModelListener
- Specified by:
removeTableModelListener
in 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.
-