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

SeedsItem

public class SeedsItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements org.gudy.azureus2.core3.config.ParameterListener, TableCellAddedListener
author
Olivier
author
TuxPaper 2004/Apr/17: modified to TableCellAdapter
author
TuxPaper 2005/Oct/13: Full Copy text & Scrape listener

Fields Summary
private static final String
CFG_FC_SEEDSTART
private static final String
CFG_FC_NUMPEERS
private int
iFC_MinSeeds
private int
iFC_NumPeers
private boolean
bCompleteTorrent
Constructors Summary
public SeedsItem(String sTableID)
Default Constructor


	   
	   
		super("seeds", ALIGN_CENTER, POSITION_LAST, 60, sTableID);
		setRefreshInterval(INTERVAL_LIVE);
    setMinWidthAuto(true);

		bCompleteTorrent = sTableID == TableManager.TABLE_MYTORRENTS_COMPLETE;
		if (bCompleteTorrent) {
			iFC_MinSeeds = COConfigurationManager.getIntParameter(CFG_FC_SEEDSTART);
			iFC_NumPeers = COConfigurationManager.getIntParameter(CFG_FC_NUMPEERS);
			COConfigurationManager.addParameterListener(CFG_FC_SEEDSTART, this);
			COConfigurationManager.addParameterListener(CFG_FC_NUMPEERS, this);
		}
	
Methods Summary
public voidcellAdded(TableCell cell)

		new Cell(cell);
	
protected voidfinalize()

		super.finalize();
		if (bCompleteTorrent) {
			COConfigurationManager.removeParameterListener(CFG_FC_SEEDSTART, this);
			COConfigurationManager.removeParameterListener(CFG_FC_NUMPEERS, this);
		}
	
public voidparameterChanged(java.lang.String parameterName)

		iFC_MinSeeds = COConfigurationManager.getIntParameter(CFG_FC_SEEDSTART);
		iFC_NumPeers = COConfigurationManager.getIntParameter(CFG_FC_NUMPEERS);