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

StorageTypeItem

public class StorageTypeItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
Parg

Fields Summary
Constructors Summary
public StorageTypeItem()
Default Constructor

    super("storagetype", ALIGN_LEAD, POSITION_INVISIBLE, 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.getStorageType() == DiskManagerFileInfo.ST_LINEAR ){
        tmp = MessageText.getString("FileItem.storage.linear");
      }else{
        tmp = MessageText.getString("FileItem.storage.compact");
      }
    }
    cell.setText(tmp);