use of org.ovirt.engine.ui.webadmin.widget.table.column.BrickStatusColumn in project ovirt-engine by oVirt.
the class SubTabVolumeBrickView method initTable.
void initTable() {
getTable().enableColumnResizing();
BrickStatusColumn brickStatusColumn = new BrickStatusColumn();
brickStatusColumn.setContextMenuTitle(constants.statusVolumeBrick());
brickStatusColumn.makeSortable();
// $NON-NLS-1$
getTable().addColumn(brickStatusColumn, constants.empty(), "30px");
AbstractTextColumn<GlusterBrickEntity> serverColumn = new AbstractTextColumn<GlusterBrickEntity>() {
@Override
public String getValue(GlusterBrickEntity brick) {
return brick.getServerName();
}
};
serverColumn.makeSortable();
// $NON-NLS-1$
getTable().addColumn(serverColumn, constants.serverVolumeBrick(), "300px");
AbstractTextColumn<GlusterBrickEntity> directoryColumn = new AbstractTextColumn<GlusterBrickEntity>() {
@Override
public String getValue(GlusterBrickEntity brick) {
String qualifiedName = brick.getQualifiedName();
if (brick.getIsArbiter()) {
// $NON-NLS-1$ //$NON-NLS-2$
qualifiedName += " (" + constants.arbiter() + ")";
}
return qualifiedName;
}
};
directoryColumn.makeSortable();
// $NON-NLS-1$
getTable().addColumn(directoryColumn, constants.brickDirectoryVolumeBrick(), "400px");
getTable().addColumn(new Column<GlusterBrickEntity, BrickProperties>(new BrickCapacityCell()) {
@Override
public BrickProperties getValue(GlusterBrickEntity object) {
return object.getBrickProperties();
}
}, constants.volumeCapacity(), // $NON-NLS-1$
"100px");
BrickHealInfoColumn healInfoColumn = new BrickHealInfoColumn();
// $NON-NLS-1$
getTable().addColumn(healInfoColumn, constants.healInfo(), "110px");
getTable().addColumn(new VolumeActivityColumn<GlusterBrickEntity>(getActivityCell()), constants.activitiesOnVolume(), // $NON-NLS-1$
"100px");
}
use of org.ovirt.engine.ui.webadmin.widget.table.column.BrickStatusColumn in project ovirt-engine by oVirt.
the class SubTabHostBrickView method initTable.
void initTable() {
getTable().enableColumnResizing();
BrickStatusColumn brickStatusColumn = new BrickStatusColumn();
brickStatusColumn.makeSortable();
// $NON-NLS-1$
getTable().addColumn(brickStatusColumn, constants.empty(), "30px");
AbstractTextColumn<GlusterBrickEntity> volNameColumn = new AbstractTextColumn<GlusterBrickEntity>() {
@Override
public String getValue(GlusterBrickEntity object) {
return object.getVolumeName();
}
};
volNameColumn.makeSortable();
getTable().addColumn(volNameColumn, constants.volumeName());
AbstractTextColumn<GlusterBrickEntity> brickDirColumn = new AbstractTextColumn<GlusterBrickEntity>() {
@Override
public String getValue(GlusterBrickEntity object) {
return object.getBrickDirectory();
}
};
brickDirColumn.makeSortable();
// $NON-NLS-1$
getTable().addColumn(brickDirColumn, constants.brickDirectoryBricks(), "220px");
BrickHealInfoColumn healInfoColumn = new BrickHealInfoColumn();
// $NON-NLS-1$
getTable().addColumn(healInfoColumn, constants.healInfo(), "110px");
}
Aggregations