use of com.biglybt.core.devices.DeviceMediaRenderer in project BiglyBT by BiglySoftware.
the class ColumnTJ_CopiedToDevice method refresh.
@Override
public void refresh(TableCell cell) {
TranscodeFile tf = (TranscodeFile) cell.getDataSource();
if (tf == null) {
return;
}
Device d = tf.getDevice();
String value = null;
if (d instanceof DeviceMediaRenderer) {
DeviceMediaRenderer dmr = (DeviceMediaRenderer) d;
if (!(dmr.canCopyToDevice() || dmr.canCopyToFolder())) {
value = na_text;
}
}
if (value == null) {
value = DisplayFormatters.getYesNo(tf.isCopiedToDevice());
}
if (cell.setSortValue(value) || !cell.isValid()) {
cell.setText(value);
}
}
Aggregations