use of org.ovirt.engine.ui.webadmin.widget.label.FullDateTimeLabel in project ovirt-engine by oVirt.
the class VMsTree method getRootItem.
@Override
protected TreeItem getRootItem(VM vm) {
HorizontalPanel panel = new HorizontalPanel();
panel.setSpacing(1);
// $NON-NLS-1$
panel.setWidth("100%");
// $NON-NLS-1$
addItemToPanel(panel, new Image(resources.vmImage()), "25px");
// $NON-NLS-1$
addTextBoxToPanel(panel, new StringValueLabel(), vm.getName(), "");
// $NON-NLS-1$
addTextBoxToPanel(panel, new StringValueLabel(), String.valueOf(vm.getDiskMap().size()), "80px");
// $NON-NLS-1$
addTextBoxToPanel(panel, new StringValueLabel(), vm.getVmtName(), "160px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Double>(), vm.getDiskSize(), "110px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new DiskSizeLabel<Double>(), vm.getActualDiskWithSnapshotsSize(), "110px");
// $NON-NLS-1$
addValueLabelToPanel(panel, new FullDateTimeLabel(), vm.getVmCreationDate(), "140px");
TreeItem treeItem = new TreeItem(panel);
treeItem.setUserObject(vm.getId());
return treeItem;
}
Aggregations