FileDocCategorySizeDatePackage
NetworksItem.javaAPI DocAzureus 3.0.3.41911Thu Jan 11 10:00:10 GMT 2007org.gudy.azureus2.ui.swt.views.tableitems.mytorrents

NetworksItem

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

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

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

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