Search in sources :

Example 11 with SearchSubsResultBase

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));
    }
}
Also used : SearchSubsResultBase(com.biglybt.ui.swt.utils.SearchSubsResultBase)

Example 12 with SearchSubsResultBase

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;
}
Also used : SearchSubsResultBase(com.biglybt.ui.swt.utils.SearchSubsResultBase)

Example 13 with SearchSubsResultBase

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;
}
Also used : SearchSubsResultBase(com.biglybt.ui.swt.utils.SearchSubsResultBase)

Aggregations

SearchSubsResultBase (com.biglybt.ui.swt.utils.SearchSubsResultBase)13 GCStringPrinter (com.biglybt.ui.swt.shells.GCStringPrinter)2 URLInfo (com.biglybt.ui.swt.shells.GCStringPrinter.URLInfo)2 TableCellSWT (com.biglybt.ui.swt.views.table.TableCellSWT)1 URL (java.net.URL)1 Image (org.eclipse.swt.graphics.Image)1 Rectangle (org.eclipse.swt.graphics.Rectangle)1