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

BlockCountItem

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

Fields Summary
Constructors Summary
public BlockCountItem()
Default Constructor

    super("numberofblocks", ALIGN_TRAIL, POSITION_LAST, 65, TableManager.TABLE_TORRENT_PIECES);
  
Methods Summary
public voidrefresh(TableCell cell)

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

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