FileDocCategorySizeDatePackage
PriorityItem.javaAPI DocAzureus 3.0.3.41996Thu Feb 09 19:42:48 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.files

PriorityItem

public class PriorityItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
TuxPaper
since
2.0.8.5

Fields Summary
Constructors Summary
public PriorityItem()
Default Constructor

    super("priority", ALIGN_LEAD, POSITION_LAST, 70, TableManager.TABLE_TORRENT_FILES);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(TableCell cell)

    DiskManagerFileInfo fileInfo = (DiskManagerFileInfo)cell.getDataSource();
    String tmp;
    if (fileInfo == null) {
      tmp = "";
    } else {
      if (fileInfo.isSkipped())
        tmp = MessageText.getString("FileItem.donotdownload");
      else if (fileInfo.isPriority())
        tmp = MessageText.getString("FileItem.high");
      else
        tmp = MessageText.getString("FileItem.normal");
    }
    cell.setText(tmp);