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

ReservedByItem

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

Fields Summary
Constructors Summary
public ReservedByItem()
Default Constructor

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

    PEPiece piece = (PEPiece)cell.getDataSource();
    String reservedBy = (piece == null) ? null : piece.getReservedBy();
    String value = reservedBy == null ? "---" : reservedBy;    
    if( !cell.setSortValue( value ) && cell.isValid() ) {
      return;
    }
    
    cell.setText(value);