Search in sources :

Example 1 with CloseableTableModel

use of org.pentaho.reporting.engine.classic.core.util.CloseableTableModel in project pentaho-platform by pentaho.

the class PentahoTableDataFactory method closeTables.

public void closeTables() {
    // this is the old implementation of 'close'
    for (TableModel model : tables.values()) {
        if (model instanceof CloseableTableModel) {
            final CloseableTableModel closeableTableModel = (CloseableTableModel) model;
            closeableTableModel.close();
        }
    }
    tables.clear();
}
Also used : CloseableTableModel(org.pentaho.reporting.engine.classic.core.util.CloseableTableModel) CloseableTableModel(org.pentaho.reporting.engine.classic.core.util.CloseableTableModel) TableModel(javax.swing.table.TableModel)

Aggregations

TableModel (javax.swing.table.TableModel)1 CloseableTableModel (org.pentaho.reporting.engine.classic.core.util.CloseableTableModel)1