Search in sources :

Example 1 with ProxySizeColumn

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

the class ProxyDataModel method buildDataColumns.

/**
     * override and create only the columns we're interested in.
     */
@Override
protected void buildDataColumns(TeamMemberList teamList, TeamProcess teamProcess, WorkflowWBSModel workflows, ProxyWBSModel proxies, MilestonesWBSModel milestones, CustomColumnSpecs columns, TaskDependencySource dependencySource, String currentUser) {
    addDataColumn(new WBSNodeColumn(proxies));
    ProxySizeColumn size = new ProxySizeColumn(this, teamProcess);
    ProxyRateColumn rate = new ProxyRateColumn(this, size);
    ProxyTimeColumn time = new ProxyTimeColumn(this, size, rate);
    rate.setTimeColumn(time);
    addDataColumn(size);
    addDataColumn(rate);
    addDataColumn(time);
}
Also used : WBSNodeColumn(teamdash.wbs.columns.WBSNodeColumn) ProxyTimeColumn(teamdash.wbs.columns.ProxyTimeColumn) ProxySizeColumn(teamdash.wbs.columns.ProxySizeColumn) ProxyRateColumn(teamdash.wbs.columns.ProxyRateColumn)

Example 2 with ProxySizeColumn

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

the class ProxyJTable method getCellEditor.

@Override
public TableCellEditor getCellEditor(int row, int column) {
    DataColumn dc = ((ProxyDataModel) getModel()).getColumn(column);
    if (dc instanceof ProxySizeColumn) {
        ProxySizeColumn psc = (ProxySizeColumn) dc;
        TableCellEditor result = psc.getCellEditorForRow(row);
        if (result != null)
            return result;
    }
    return super.getCellEditor(row, column);
}
Also used : ProxySizeColumn(teamdash.wbs.columns.ProxySizeColumn) TableCellEditor(javax.swing.table.TableCellEditor)

Aggregations

ProxySizeColumn (teamdash.wbs.columns.ProxySizeColumn)2 TableCellEditor (javax.swing.table.TableCellEditor)1 ProxyRateColumn (teamdash.wbs.columns.ProxyRateColumn)1 ProxyTimeColumn (teamdash.wbs.columns.ProxyTimeColumn)1 WBSNodeColumn (teamdash.wbs.columns.WBSNodeColumn)1