FileDocCategorySizeDatePackage
CompletedItem.javaAPI DocAzureus 3.0.3.41727Thu Feb 09 19:42:58 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.pieces

CompletedItem

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

Fields Summary
Constructors Summary
public CompletedItem()
Default Constructor

    super("completed", ALIGN_TRAIL, POSITION_LAST, 80, TableManager.TABLE_TORRENT_PIECES);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(TableCell cell)

    PEPiece piece = (PEPiece)cell.getDataSource();
    long value = (piece == null) ? 0 : piece.getNbWritten();

    if( !cell.setSortValue( value ) && cell.isValid() ) {
      return;
    }
    
    cell.setText(""+value);