use of com.biglybt.ui.swt.utils.SearchSubsResultBase in project BiglyBT by BiglySoftware.
the class ColumnSearchSubResultRank method refresh.
@Override
public void refresh(TableCell cell) {
SearchSubsResultBase rc = (SearchSubsResultBase) cell.getDataSource();
if (rc == null) {
return;
}
long rank = rc.getRank();
if (rank >= 0 && cell.setSortValue(rank)) {
cell.setText(String.valueOf(rank));
}
}
use of com.biglybt.ui.swt.utils.SearchSubsResultBase in project BiglyBT by BiglySoftware.
the class ColumnSearchSubResultRatings method refresh.
@Override
public void refresh(TableCell cell) {
SearchSubsResultBase result = (SearchSubsResultBase) cell.getDataSource();
long sort = result.getVotesCommentsSortValue();
if (!cell.setSortValue(sort) && cell.isValid()) {
return;
}
if (!cell.isShown()) {
return;
}
String str = result.getVotesComments();
cell.setText(str);
return;
}
use of com.biglybt.ui.swt.utils.SearchSubsResultBase in project BiglyBT by BiglySoftware.
the class ColumnSearchSubResultSeedsPeers method refresh.
@Override
public void refresh(TableCell cell) {
SearchSubsResultBase result = (SearchSubsResultBase) cell.getDataSource();
long sort = result.getSeedsPeersSortValue();
if (!cell.setSortValue(sort) && cell.isValid()) {
return;
}
if (!cell.isShown()) {
return;
}
String str = result.getSeedsPeers();
cell.setText(str);
return;
}
Aggregations