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 void
addTableModelListener(TableModelListener l)
protected void
fireTableModelEvent(TableModelEvent event)
Class
getColumnClass(int columnIndex)
int
getColumnCount()
String
getColumnName(int columnIndex)
int
getRowCount()
Object
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
recomputeRowCount()
void
removeTableModelListener(TableModelListener l)
void
setValueAt(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:
getRowCount
in interfaceTableModel
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfaceTableModel
-
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName
in interfaceTableModel
-
getColumnClass
public Class getColumnClass(int columnIndex)
- Specified by:
getColumnClass
in interfaceTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
- Specified by:
isCellEditable
in interfaceTableModel
-
getValueAt
public Object getValueAt(int rowIndex, int columnIndex)
- Specified by:
getValueAt
in interfaceTableModel
-
setValueAt
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfaceTableModel
-
addTableModelListener
public void addTableModelListener(TableModelListener l)
- Specified by:
addTableModelListener
in interfaceTableModel
-
removeTableModelListener
public void removeTableModelListener(TableModelListener l)
- 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.
-
-