public void refresh(TableCell cell) { TRHostTorrent item = (TRHostTorrent) cell.getDataSource(); long value = (item == null) ? 0 : item.getAnnounceCount(); if (!cell.setSortValue(value) && cell.isValid()) { return; } cell.setText("" + value); }