FileDocCategorySizeDatePackage
PeerByteIDItem.javaAPI DocAzureus 3.0.3.41969Sun Sep 23 04:55:20 BST 2007org.gudy.azureus2.ui.swt.views.tableitems.peers

PeerByteIDItem

public class PeerByteIDItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener
author
Allan Crooks

Fields Summary
Constructors Summary
public PeerByteIDItem(String table_id)
Default Constructor

		// Uses same values for subclass constructor as ClientItem does.
		super("peer_byte_id", POSITION_INVISIBLE, 100, table_id);
		setRefreshInterval(INTERVAL_LIVE);
	
Methods Summary
public voidrefresh(org.gudy.azureus2.plugins.ui.tables.TableCell cell)

		PEPeer peer = (PEPeer) cell.getDataSource();
		if (peer == null) {cell.setText(""); return;}
		byte[] peer_id = peer.getId();
		if (peer_id == null) {cell.setText(""); return;}
		cell.setText(ByteFormatter.nicePrint(peer_id));