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

SpeedItem

public class SpeedItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
MjrTom
since
2.3.0.7

Fields Summary
Constructors Summary
public SpeedItem()
Default Constructor

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

		PEPiece piece = (PEPiece)cell.getDataSource();
		int value =0;
		if (null !=piece)
		{
			value =piece.getSpeed();
			
			if( !cell.setSortValue( value ) && cell.isValid() )
			{
				return;
			}
		}
		
		cell.setText("" +value);