Default Constructor super("status", POSITION_LAST, 80, sTableID); setRefreshInterval(INTERVAL_LIVE);
super("status", POSITION_LAST, 80, sTableID); setRefreshInterval(INTERVAL_LIVE);
DownloadManager dm = (DownloadManager)cell.getDataSource(); if( cell.setText( dm == null ? "" : DisplayFormatters.formatDownloadStatus(dm) ) || !cell.isValid() ) { int state = dm.getState(); if (state == DownloadManager.STATE_SEEDING) ((TableCellSWT)cell).getTableRowSWT().setForeground(Colors.blues[Colors.BLUES_MIDDARK]); else if (state == DownloadManager.STATE_ERROR) ((TableCellSWT)cell).getTableRowSWT().setForeground(Colors.colorError); else ((TableCellSWT)cell).getTableRowSWT().setForeground(null); }