FileDocCategorySizeDatePackage
TypeItem.javaAPI DocAzureus 3.0.3.41907Thu Feb 09 19:42:58 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.pieces

TypeItem

public class TypeItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
TuxPaper
since
2.0.8.5
author
MjrTom 2005/Oct/08: fast/slow changed to graduated, so >2 = fast now

Fields Summary
Constructors Summary
public TypeItem()
Default Constructor

    super("type", ALIGN_TRAIL, POSITION_LAST, 80, TableManager.TABLE_TORRENT_PIECES);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(TableCell cell)

    PEPiece piece = (PEPiece)cell.getDataSource();
    long value = (piece == null) ? 0 : piece.getSpeed() >2 ? 1 : 0;
    
    if( !cell.setSortValue( value ) && cell.isValid() ) {
      return;
    }
    
    cell.setText(MessageText.getString("PiecesView.typeItem." + value));