FileDocCategorySizeDatePackage
DateCompletedItem.javaAPI DocAzureus 3.0.3.41951Mon May 21 16:32:18 BST 2007org.gudy.azureus2.ui.swt.views.tableitems.mytorrents

DateCompletedItem

public class DateCompletedItem extends org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn implements org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener

Fields Summary
Constructors Summary
public DateCompletedItem(String sTableID)

		super("DateCompleted", ALIGN_TRAIL, POSITION_INVISIBLE, 125, sTableID);
	
Methods Summary
public voidrefresh(org.gudy.azureus2.plugins.ui.tables.TableCell cell)

		DownloadManager dm = (DownloadManager) cell.getDataSource();
		long value = (dm == null) ? 0 : dm.getDownloadState().getLongParameter(
				DownloadManagerState.PARAM_DOWNLOAD_COMPLETED_TIME);

		if (!cell.setSortValue(value) && cell.isValid())
			return;

		cell.setText(DisplayFormatters.formatDate(value));