FileDocCategorySizeDatePackage
PeersItem.javaAPI DocAzureus 3.0.3.44476Mon Feb 19 14:24:06 GMT 2007org.gudy.azureus2.ui.swt.views.tableitems.mytorrents

PeersItem

public class PeersItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements org.gudy.azureus2.plugins.ui.tables.TableCellAddedListener
# of Peers A new object is created for each cell, so that we can listen to the scrapes and update individually (and only when needed). Total connected peers are left to update on INTERVAL_LIVE, as they aren't very expensive. It would probably be more expensive to hook the peer listener and only refresh on peer added/removed, because that happens frequently.
author
Olivier
author
TuxPaper 2004/Apr/17: modified to TableCellAdapter 2005/Oct/13: Use listener to update total from scrape

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

		super("peers", ALIGN_CENTER, POSITION_LAST, 60, sTableID);
		setRefreshInterval(INTERVAL_LIVE);
    setMinWidthAuto(true);
	
Methods Summary
public voidcellAdded(org.gudy.azureus2.plugins.ui.tables.TableCell cell)

		new Cell(cell);