Search in sources :

Example 1 with NullDataColumn

use of teamdash.wbs.columns.NullDataColumn in project processdash by dtuma.

the class DataTableModel method removeDataColumn.

/** Remove a single data column from the data model */
public void removeDataColumn(DataColumn column) {
    int pos = findIndexOfColumn(column);
    if (pos == -1)
        return;
    if (column instanceof IndexAwareDataColumn)
        ((IndexAwareDataColumn) column).setColumnIndex(-1);
    columns.set(pos, new NullDataColumn());
    labelSources.remove(pos);
    attrSources.remove(pos);
    // if the dependencies are already computed, update them.
    if (dependencies != null)
        initializeColumnDependencies();
}
Also used : NullDataColumn(teamdash.wbs.columns.NullDataColumn)

Aggregations

NullDataColumn (teamdash.wbs.columns.NullDataColumn)1