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

PieceNumberItem

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

Fields Summary
Constructors Summary
public PieceNumberItem()
Default Constructor

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

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

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