FileDocCategorySizeDatePackage
PriorityItem.javaAPI DocAzureus 3.0.3.41716Fri Feb 24 12:37:00 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.pieces

PriorityItem

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

Fields Summary
Constructors Summary
public PriorityItem()
Default Constructor

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

		int	value =0;
		final PEPiece piece = (PEPiece)cell.getDataSource();
		if (piece !=null)
		{
			value =piece.getResumePriority();

			if(!cell.setSortValue(value) &&cell.isValid())
			{
				return;
			}
		}    
		cell.setText(""+value);