FileDocCategorySizeDatePackage
PieceItem.javaAPI DocAzureus 3.0.3.41761Sun Sep 23 04:54:50 BST 2007org.gudy.azureus2.ui.swt.views.tableitems.peers

PieceItem

public class PieceItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
MjrTom
since
2.3.0.7

Fields Summary
Constructors Summary
public PieceItem(String table_id)
Default Constructor

    super("piece", ALIGN_TRAIL, POSITION_INVISIBLE, 40, table_id);
    setRefreshInterval(INTERVAL_LIVE);
Methods Summary
public voidrefresh(TableCell cell)

    PEPeer peer = (PEPeer)cell.getDataSource();
    int value = (peer == null) ? 0 : peer.getLastPiece();

    if (!cell.setSortValue(value) && cell.isValid())
      return;

    cell.setText(""+value);