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

DownloadedItem

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

Fields Summary
Constructors Summary
public DownloadedItem()
Default Constructor

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

    TRHostTorrent item = (TRHostTorrent)cell.getDataSource();
    long value = 0;
    if (item != null) {
      Long longObject = (Long)item.getData("GUI_Downloaded");
      if (longObject != null)
        value = longObject.longValue();
     }

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