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 Details

    • RowMapperTableModel

      public RowMapperTableModel(TableModel parent)
  • Method Details

    • fireTableModelEvent

      protected void fireTableModelEvent(TableModelEvent event)
    • recomputeRowCount

      protected void recomputeRowCount()
    • getRowCount

      public int getRowCount()
      Specified by:
      getRowCount in interface TableModel
    • getColumnCount

      public int getColumnCount()
      Specified by:
      getColumnCount in interface TableModel
    • getColumnName

      public String getColumnName(int columnIndex)
      Specified by:
      getColumnName in interface TableModel
    • getColumnClass

      public Class getColumnClass(int columnIndex)
      Specified by:
      getColumnClass in interface TableModel
    • isCellEditable

      public boolean isCellEditable(int rowIndex, int columnIndex)
      Specified by:
      isCellEditable in interface TableModel
    • getValueAt

      public Object getValueAt(int rowIndex, int columnIndex)
      Specified by:
      getValueAt in interface TableModel
    • setValueAt

      public void setValueAt(Object aValue, int rowIndex, int columnIndex)
      Specified by:
      setValueAt in interface TableModel
    • addTableModelListener

      public void addTableModelListener(TableModelListener l)
      Specified by:
      addTableModelListener in interface TableModel
    • removeTableModelListener

      public void removeTableModelListener(TableModelListener l)
      Specified by:
      removeTableModelListener in interface TableModel
    • 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.