use of org.ovirt.engine.ui.common.widget.table.column.DiskProgressColumn in project ovirt-engine by oVirt.
the class DisksViewColumns method getStatusColumn.
public static final AbstractColumn<Disk, Disk> getStatusColumn(String sortBy) {
DiskTransferProgressColumn uploadImageProgressColumn = new DiskTransferProgressColumn();
DiskProgressColumn diskProgressColumn = new DiskProgressColumn();
List<HasCell<Disk, ?>> list = new ArrayList<>();
list.add(getStatusOnlyColumn(null));
list.add(uploadImageProgressColumn);
list.add(diskProgressColumn);
Cell<Disk> compositeCell = new StatusCompositeCell<>(list);
AbstractColumn<Disk, Disk> column = new AbstractColumn<Disk, Disk>(compositeCell) {
@Override
public Disk getValue(Disk object) {
return object;
}
};
if (sortBy != null) {
column.makeSortable(sortBy);
}
return column;
}
Aggregations