package org.gudy.azureus2.ui.swt.views.clientstats; import org.gudy.azureus2.plugins.ui.tables.TableCell; import org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener; import org.gudy.azureus2.plugins.ui.tables.TableColumn; public class ColumnCS_Name implements TableCellRefreshListener { public static final String COLUMN_ID = "name"; public ColumnCS_Name(TableColumn column) { column.initialize(TableColumn.ALIGN_LEAD, TableColumn.POSITION_LAST, 215); column.addListeners(this); column.setType(TableColumn.TYPE_TEXT_ONLY); } public void refresh(TableCell cell) { ClientStatsDataSource ds = (ClientStatsDataSource) cell.getDataSource(); if (ds == null) { return; } cell.setText(ds.client); } }