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

RankItem

public class RankItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
Torrent Position column. One object for all rows to save memory
author
Olivier
author
TuxPaper (2004/Apr/17: modified to TableCellAdapter)

Fields Summary
private boolean
bInvalidByTrigger
Constructors Summary
public RankItem(String sTableID)
Default Constructor


     
     
    super("#", ALIGN_TRAIL, POSITION_LAST, 50, sTableID);
    setRefreshInterval(INTERVAL_INVALID_ONLY);
    GlobalManager gm = AzureusCoreFactory.getSingleton().getGlobalManager();
    gm.addListener(new GMListener());
    setMaxWidthAuto(true);
    setMinWidthAuto(true);
  
Methods Summary
public voidrefresh(TableCell cell)

  	bInvalidByTrigger = false;

    DownloadManager dm = (DownloadManager)cell.getDataSource();
    long value = (dm == null) ? 0 : dm.getPosition();
    cell.setSortValue(value);
    cell.setText(String.valueOf(value));