Default Constructor super("timesinceupload", ALIGN_TRAIL, POSITION_INVISIBLE, 70, sTableID); setRefreshInterval(INTERVAL_LIVE); setMinWidthAuto(true);
super("timesinceupload", ALIGN_TRAIL, POSITION_INVISIBLE, 70, sTableID); setRefreshInterval(INTERVAL_LIVE); setMinWidthAuto(true);
DownloadManager dm = (DownloadManager)cell.getDataSource(); int value = (dm == null) ? -2 : dm.getStats().getTimeSinceLastDataSentInSeconds(); if (!cell.setSortValue(value==-1?Integer.MAX_VALUE:value) && cell.isValid()) return; cell.setText(value==-2?"":(value==-1?Constants.INFINITY_STRING:TimeFormatter.format(value)));