Search in sources :

Example 1 with TableColumnImpl

use of com.biglybt.ui.common.table.impl.TableColumnImpl in project BiglyBT by BiglySoftware.

the class TableManagerImpl method addColumn.

@Override
public void addColumn(final TableColumn tableColumn) {
    if (!(tableColumn instanceof TableColumnImpl))
        throw (new UIRuntimeException("TableManager.addColumn(..) can only add columns created by createColumn(..)"));
    TableColumnManager.getInstance().addColumns(new TableColumnCore[] { (TableColumnCore) tableColumn });
    TableStructureEventDispatcher tsed = TableStructureEventDispatcher.getInstance(tableColumn.getTableID());
    tsed.tableStructureChanged(true, tableColumn.getForDataSourceType());
}
Also used : TableStructureEventDispatcher(com.biglybt.ui.common.table.TableStructureEventDispatcher) TableColumnImpl(com.biglybt.ui.common.table.impl.TableColumnImpl) UIRuntimeException(com.biglybt.pif.ui.UIRuntimeException)

Aggregations

UIRuntimeException (com.biglybt.pif.ui.UIRuntimeException)1 TableStructureEventDispatcher (com.biglybt.ui.common.table.TableStructureEventDispatcher)1 TableColumnImpl (com.biglybt.ui.common.table.impl.TableColumnImpl)1