FileDocCategorySizeDatePackage
LANItem.javaAPI DocAzureus 3.0.3.42155Sun Sep 23 04:54:52 BST 2007org.gudy.azureus2.ui.swt.views.tableitems.peers

LANItem

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

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

    super("lan", ALIGN_CENTER, POSITION_INVISIBLE, 20, table_id);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(org.gudy.azureus2.plugins.ui.tables.TableCell cell)

    PEPeer peer = (PEPeer)cell.getDataSource();
    boolean lan = (peer == null) ? false : peer.isLANLocal();

    if (!cell.setSortValue(lan ? 1 : 0) && cell.isValid())
      return;

    cell.setText(lan ? "*" : "");
    
    ((TableCellSWT)cell).getTableRowSWT().setForeground(lan ? Colors.blue : null);