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

CategoryItem

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

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

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

    String sCategory = null;
    DownloadManager dm = (DownloadManager)cell.getDataSource();
    if (dm != null) {
      Category cat = dm.getDownloadState().getCategory();
      if (cat != null)
        sCategory = cat.getName();
    }
    cell.setText((sCategory == null) ? "" : sCategory);