FileDocCategorySizeDatePackage
ColumnAzProduct.javaAPI DocAzureus 3.0.3.43093Wed Jul 25 12:05:42 BST 2007com.aelitis.azureus.ui.swt.columns.torrent

ColumnAzProduct

public class ColumnAzProduct extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements TableCellToolTipListener, TableCellAddedListener
author
TuxPaper
created
Jun 13, 2006

Fields Summary
public static String
COLUMN_ID
private static org.gudy.azureus2.ui.swt.pluginsimpl.UISWTGraphicImpl
graphicProductAzureus
private static org.gudy.azureus2.ui.swt.pluginsimpl.UISWTGraphicImpl
graphicProductGlobe
private static int
width
Constructors Summary
public ColumnAzProduct(String sTableID)


	 
		Image img = ImageLoaderFactory.getInstance().getImage(
				"column.azproduct.product");
		width = img.getBounds().width;
		graphicProductAzureus = new UISWTGraphicImpl(img);

		img = ImageLoaderFactory.getInstance().getImage("column.azproduct.globe");
		width = Math.max(width, img.getBounds().width);
		graphicProductGlobe = new UISWTGraphicImpl(img);
	
		super(COLUMN_ID, sTableID);
		initializeAsGraphic(POSITION_LAST, width);
		setWidthLimits(width, width);
		setAlignment(ALIGN_CENTER);
	
Methods Summary
public voidcellAdded(TableCell cell)

		new Cell(cell);
	
public voidcellHover(TableCell cell)

		if (Constants.isCVSVersion()) {
			DownloadManager dm = (DownloadManager) cell.getDataSource();
			if (dm == null) {
				return;
			}

			TOTorrent torrent = dm.getTorrent();
			long refreshOn = PlatformTorrentUtils.getMetaDataRefreshOn(torrent);
			long diff = (refreshOn - SystemTime.getCurrentTime()) / 1000;
			cell.setToolTip("Meta data auto refreshes in "
					+ TimeFormatter.format(diff));
		}
	
public voidcellHoverComplete(TableCell cell)