FileDocCategorySizeDatePackage
PeerCountItem.javaAPI DocAzureus 3.0.3.41855Thu Feb 09 19:42:50 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.mytracker

PeerCountItem

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

Fields Summary
Constructors Summary
public PeerCountItem()
Default Constructor

    super("peers", ALIGN_TRAIL, POSITION_LAST, 60, TableManager.TABLE_MYTRACKER);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(TableCell cell)

    TRHostTorrent item = (TRHostTorrent)cell.getDataSource();
    long value = 0;
    if (item != null) {
      Long longObject = (Long)item.getData("GUI_PeerCount");
      if (longObject != null)
        value = longObject.longValue();
     }

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