use of com.biglybt.ui.common.table.TableViewCreator in project BiglyBT by BiglySoftware.
the class TagAddedToDateItem method refresh.
@Override
public void refresh(TableCell cell, long timestamp) {
DownloadManager dm = (DownloadManager) cell.getDataSource();
TableView<?> tv = cell.getTableRow().getView();
TableViewCreator tvc = tv == null ? null : cell.getTableRow().getView().getTableViewCreator();
if (dm != null && tvc instanceof MyTorrentsView) {
MyTorrentsView mtv = (MyTorrentsView) tvc;
Tag[] tags = mtv.getCurrentTags();
if (tags != null && tags.length == 1) {
long time = tags[0].getTaggableAddedTime(dm);
super.refresh(cell, time);
return;
}
}
super.refresh(cell, -1);
}
Aggregations