FileDocCategorySizeDatePackage
PeerSourcesItem.javaAPI DocAzureus 3.0.3.41899Thu Feb 09 19:42:58 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.mytorrents

PeerSourcesItem

public class PeerSourcesItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
Display Category torrent belongs to.
author
TuxPaper

Fields Summary
Constructors Summary
public PeerSourcesItem(String sTableID)
Default Constructor

    super("peersources", 70, sTableID);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(TableCell cell)

    String ps = "";
    DownloadManager dm = (DownloadManager)cell.getDataSource();
    if (dm != null) {
      String[] nets = dm.getDownloadState().getPeerSources();
  
      for (int i=0;i<nets.length;i++){
      	
      	ps += (i==0?"":",") + nets[i];
      }
    }
    cell.setText((ps == null) ? "" : ps);