FileDocCategorySizeDatePackage
TrackerCellUtils.javaAPI DocAzureus 3.0.3.42544Mon Feb 19 14:24:06 GMT 2007org.gudy.azureus2.ui.swt.views.tableitems.mytorrents

TrackerCellUtils

public class TrackerCellUtils extends Object
author
TuxPaper

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.StringgetTooltipText(org.gudy.azureus2.plugins.ui.tables.TableCell cell, org.gudy.azureus2.core3.download.DownloadManager dm)

		if (dm == null || cell == null)
			return null;

		String sToolTip = null;
		TRTrackerScraperResponse response = dm.getTrackerScrapeResponse();
		if (response instanceof TRTrackerBTScraperResponseImpl) {
			String sPrefix = ((TRTrackerBTScraperResponseImpl) response)
					.getTrackerStatus().getSupportsMultipeHashScrapes() ? "" : "No";
			sToolTip = MessageText.getString("Tracker.tooltip." + sPrefix
					+ "MultiSupport");
		}
		return sToolTip;
	
public static voidupdateColor(org.gudy.azureus2.plugins.ui.tables.TableCell cell, org.gudy.azureus2.core3.download.DownloadManager dm)

		if (dm == null || cell == null)
			return;

		TRTrackerScraperResponse response = dm.getTrackerScrapeResponse();
		if (response instanceof TRTrackerBTScraperResponseImpl) {
			boolean bMultiHashScrapes = ((TRTrackerBTScraperResponseImpl) response)
					.getTrackerStatus().getSupportsMultipeHashScrapes();
			((TableCellSWT) cell).setForeground(bMultiHashScrapes ? null
					: Colors.colorWarning);
		}