Class RowMapperTableModel
- java.lang.Object
-
- org.pentaho.reporting.libraries.designtime.swing.table.RowMapperTableModel
-
- All Implemented Interfaces:
TableModel
- Direct Known Subclasses:
GroupedTableModel
public abstract class RowMapperTableModel extends Object implements TableModel
-
-
Constructor Summary
Constructors Constructor Description RowMapperTableModel(TableModel parent)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddTableModelListener(TableModelListener l)protected voidfireTableModelEvent(TableModelEvent event)ClassgetColumnClass(int columnIndex)intgetColumnCount()StringgetColumnName(int columnIndex)intgetRowCount()ObjectgetValueAt(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 voidrecomputeRowCount()voidremoveTableModelListener(TableModelListener l)voidsetValueAt(Object aValue, int rowIndex, int columnIndex)
-
-
-
Constructor Detail
-
RowMapperTableModel
public RowMapperTableModel(TableModel parent)
-
-
Method Detail
-
fireTableModelEvent
protected void fireTableModelEvent(TableModelEvent event)
-
recomputeRowCount
protected void recomputeRowCount()
-
getRowCount
public int getRowCount()
- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceTableModel
-
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnNamein interfaceTableModel
-
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClassin interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)- Specified by:
isCellEditablein interfaceTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAtin interfaceTableModel
-
addTableModelListener
public void addTableModelListener(TableModelListener l)
- Specified by:
addTableModelListenerin interfaceTableModel
-
removeTableModelListener
public void removeTableModelListener(TableModelListener l)
- 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.
-
-