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

SnubbedItem

public class SnubbedItem 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 SnubbedItem(String table_id)
Default Constructor

    super("S", 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 bSnubbed = (peer == null) ? false : peer.isSnubbed();

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

    cell.setText(bSnubbed ? "*" : "");
    ((TableCellSWT)cell).getTableRowSWT().setForeground(bSnubbed ? Colors.grey 
    		: null);