FileDocCategorySizeDatePackage
BadNATCountItem.javaAPI DocAzureus 3.0.3.42017Thu Feb 09 19:42:50 GMT 2006org.gudy.azureus2.ui.swt.views.tableitems.mytracker

BadNATCountItem

public class BadNATCountItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener
author
parg

Fields Summary
Constructors Summary
public BadNATCountItem()
Default Constructor

		super("badnat", ALIGN_TRAIL, POSITION_LAST, 60, TableManager.TABLE_MYTRACKER);
		setRefreshInterval(INTERVAL_LIVE);
	
Methods Summary
public voidrefresh(org.gudy.azureus2.plugins.ui.tables.TableCell cell)

		TRHostTorrent item = (TRHostTorrent)cell.getDataSource();
		long value = 0;
		if (item != null) {
			Long longObject = (Long)item.getData("GUI_BadNATCount");
			if (longObject != null)
				value = longObject.longValue();
		}

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