FileDocCategorySizeDatePackage
DiscardedItem.javaAPI DocAzureus 3.0.3.41943Sun Sep 23 04:55:00 BST 2007org.gudy.azureus2.ui.swt.views.tableitems.peers

DiscardedItem

public class DiscardedItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
Olivier
author
TuxPaper (2004/Apr/19: modified to TableCellAdapter)

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

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

    PEPeer peer = (PEPeer)cell.getDataSource();
    long value = (peer == null) ? 0 : peer.getStats().getTotalBytesDiscarded();

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

    cell.setText(DisplayFormatters.formatByteCountToKiBEtc(value));