FileDocCategorySizeDatePackage
PassiveItem.javaAPI DocAzureus 3.0.3.42031Sun Aug 12 22:17:24 BST 2007org.gudy.azureus2.ui.swt.views.tableitems.mytracker

PassiveItem

public class PassiveItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellRefreshListener
author
TuxPaper
since
2.0.8.5

Fields Summary
Constructors Summary
public PassiveItem()
Default Constructor

    super("passive", ALIGN_TRAIL, POSITION_LAST, 60, TableManager.TABLE_MYTRACKER);
    setRefreshInterval(INTERVAL_LIVE);
  
Methods Summary
public voidrefresh(TableCell cell)

	  
    TRHostTorrent item = (TRHostTorrent)cell.getDataSource();
	
    String status_text = "";
    
    if( item != null ) {
  
     if( !cell.setSortValue( item.isPassive()?1:0 ) && cell.isValid() ) {
        return;
     }
	  
     if ( item.isPassive() ){
	     status_text = MessageText.getString( "Button.yes" ).replaceAll("&", "");
     }else{
		 status_text = MessageText.getString( "Button.no" ).replaceAll("&", "");
     }

    }
    
    cell.setText( status_text );