FileDocCategorySizeDatePackage
DoneItem.javaAPI DocAzureus 3.0.3.41943Mon Feb 19 14:24:06 GMT 2007org.gudy.azureus2.ui.swt.views.tableitems.files

DoneItem

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

Fields Summary
Constructors Summary
public DoneItem()
Default Constructor

    super("done", ALIGN_TRAIL, POSITION_LAST, 70, TableManager.TABLE_TORRENT_FILES);
    setRefreshInterval(INTERVAL_LIVE);
    setMinWidthAuto(true);
  
Methods Summary
public voidrefresh(TableCell cell)

    DiskManagerFileInfo fileInfo = (DiskManagerFileInfo)cell.getDataSource();
    long value = (fileInfo == null) ? 0 : fileInfo.getDownloaded();

    if( !cell.setSortValue( value ) && cell.isValid() ) {
      return;
    }
    
		// value < 0 -> unknown skeleton value
	
    cell.setText(value<0?"":DisplayFormatters.formatByteCountToKiBEtc(value));