FileDocCategorySizeDatePackage
TotalBytesInItem.javaAPI DocAzureus 3.0.3.41838Thu Feb 09 19:42:50 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.mytracker

TotalBytesInItem

public class TotalBytesInItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
TuxPaper
since
2.0.8.5

Fields Summary
Constructors Summary
public TotalBytesInItem()
Default Constructor

    super("bytesin", ALIGN_TRAIL, POSITION_LAST, 50, TableManager.TABLE_MYTRACKER);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(TableCell cell)

    TRHostTorrent item = (TRHostTorrent)cell.getDataSource();
    long value = (item == null) ? 0 : item.getTotalBytesIn();

    if( !cell.setSortValue( value ) && cell.isValid() ) {
      return;
    }
    
    cell.setText(DisplayFormatters.formatByteCountToKiBEtc(value));