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

PeerSourceItem

public class PeerSourceItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
Olivier
author
TuxPaper (2004/Apr/19: modified to TableCellAdapter)

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

    super("source", ALIGN_TRAIL, POSITION_INVISIBLE, 40, table_id);
  
Methods Summary
public voidrefresh(TableCell cell)

    PEPeer peer = (PEPeer)cell.getDataSource();
    String value = (peer == null) ? "" : peer.getPeerSource();

    if (!cell.setSortValue(value) && cell.isValid())
      return;

    cell.setText(""+value);