use of com.google.gwt.user.client.ui.DateLabel in project ovirt-engine by oVirt.
the class StoragesTree method getNodeItem.
@Override
protected TreeItem getNodeItem(DiskModel diskModel) {
HorizontalPanel panel = new HorizontalPanel();
panel.setSpacing(1);
// $NON-NLS-1$
panel.setWidth("100%");
DiskImage disk = (DiskImage) diskModel.getDisk();
// $NON-NLS-1$
addItemToPanel(panel, new Image(resources.diskImage()), "30px");
// $NON-NLS-1$
addTextBoxToPanel(panel, new StringValueLabel(), disk.getDiskAlias(), "");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Long>(), disk.getSizeInGigabytes(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new EnumLabel<ImageStatus>(), disk.getImageStatus(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new EnumLabel<VolumeType>(), disk.getVolumeType(), "120px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new EnumLabel<DiskInterface>(), disk.getDiskVmElements().iterator().next().getDiskInterface(), "110px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new EnumLabel<DiskStorageType>(), disk.getDiskStorageType(), "110px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DateLabel(), disk.getCreationDate(), "100px");
TreeItem treeItem = new TreeItem(panel);
treeItem.setUserObject(getEntityId(diskModel));
return treeItem;
}
Aggregations