use of org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus in project ovirt-engine by oVirt.
the class DisksTree method getNodeItem.
@Override
protected TreeItem getNodeItem(StorageDomain storage) {
HorizontalPanel panel = new HorizontalPanel();
panel.setSpacing(1);
// $NON-NLS-1$
panel.setWidth("100%");
// $NON-NLS-1$
addItemToPanel(panel, new Image(resources.storageImage()), "25px");
// $NON-NLS-1$
addTextBoxToPanel(panel, new StringValueLabel(), storage.getStorageName(), "");
// $NON-NLS-1$
addValueLabelToPanel(panel, new EnumLabel<StorageDomainType>(), storage.getStorageDomainType(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new EnumLabel<StorageDomainSharedStatus>(), storage.getStorageDomainSharedStatus(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Integer>(), storage.getAvailableDiskSize(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Integer>(), storage.getUsedDiskSize(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Integer>(), storage.getTotalDiskSize(), "120px");
TreeItem treeItem = new TreeItem(panel);
treeItem.setUserObject(storage.getId());
return treeItem;
}
use of org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus in project ovirt-engine by oVirt.
the class StorageDomainCommandBase method addStorageDomainStatusIllegalMessage.
protected void addStorageDomainStatusIllegalMessage() {
addValidationMessage(EngineMessage.ACTION_TYPE_FAILED_STORAGE_DOMAIN_STATUS_ILLEGAL2);
StorageDomainStatus status = getStorageDomainStatus();
StorageDomainSharedStatus sharedStatus = getStorageDomainSharedStatus();
Object messageParameter = status;
if (status == StorageDomainStatus.Unknown && sharedStatus != null) {
// We got more informative information than "Unknown".
messageParameter = sharedStatus;
}
addValidationMessageVariable("status", messageParameter);
}
use of org.ovirt.engine.core.common.businessentities.StorageDomainSharedStatus in project ovirt-engine by oVirt.
the class StoragesTree method getRootItem.
@Override
protected TreeItem getRootItem(StorageDomainModel storageDomainModel) {
HorizontalPanel panel = new HorizontalPanel();
panel.setSpacing(1);
// $NON-NLS-1$
panel.setWidth("100%");
StorageDomain storage = storageDomainModel.getStorageDomain();
// $NON-NLS-1$
addItemToPanel(panel, new Image(resources.storageImage()), "25px");
// $NON-NLS-1$
addTextBoxToPanel(panel, new StringValueLabel(), storage.getStorageName(), "");
// $NON-NLS-1$
addValueLabelToPanel(panel, new EnumLabel<StorageDomainType>(), storage.getStorageDomainType(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new EnumLabel<StorageDomainSharedStatus>(), storage.getStorageDomainSharedStatus(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Integer>(), storage.getAvailableDiskSize(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Integer>(), storage.getUsedDiskSize(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Integer>(), storage.getTotalDiskSize(), "90px");
TreeItem treeItem = new TreeItem(panel);
treeItem.setUserObject(storage.getId());
return treeItem;
}
Aggregations