FileDocCategorySizeDatePackage
RequestedItem.javaAPI DocAzureus 3.0.3.41933Thu Jan 11 11:53:50 GMT 2007org.gudy.azureus2.ui.swt.views.tableitems.pieces

RequestedItem

public class RequestedItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
MjrTom Shows if more requests can be made on the piece or not

Fields Summary
Constructors Summary
public RequestedItem()
Default Constructor

        super("Requested", ALIGN_CENTER, POSITION_INVISIBLE, 20, TableManager.TABLE_TORRENT_PIECES);
        setRefreshInterval(INTERVAL_LIVE);
    
Methods Summary
public voidrefresh(TableCell cell)

        boolean value =false;
        final PEPiece pePiece =(PEPiece) cell.getDataSource();
        if (pePiece !=null)
        {
             value = pePiece.isRequested();
        }
        if (!cell.setSortValue(value ?1 :0) &&cell.isValid())
            return;
        cell.setText(value?"*" :"");