}
public void objToView(Object obj) {
BomForm form = (BomForm) obj;
Listbox buildingListbox = (Listbox) getFellow("buildingListbox");
Textbox floorTB = (Textbox) getFellow("floor");
Textbox regionTB = (Textbox) getFellow("region");
Combobox systemCB = (Combobox) getFellow("system");
Combobox equipmentCB = (Combobox) getFellow("equipment");
floorTB.setText(form.getFloor());
regionTB.setText(form.getRegion());
Iterator systemCBItr = systemCB.getItems().iterator();
while (systemCBItr.hasNext()) {
Comboitem item = (Comboitem) systemCBItr.next();
if (item.getValue().toString().equals(form.getSystemType())) {
systemCB.setSelectedItem(item);
}
}
initEquipmentBySystem();
Iterator equipmentCBItr = equipmentCB.getItems().iterator();
while (equipmentCBItr.hasNext()) {
Comboitem item = (Comboitem) equipmentCBItr.next();
Equipment equ = (Equipment) item.getValue();
if (equ.getEquipmentId().equals(form.getEquipmentId())) {
equipmentCB.setSelectedItem(item);
}
}
Textbox supplierNameTB = (Textbox) getFellow("supplierName");
Combobox priorityCB = (Combobox) getFellow("priority");
Textbox propertyCodeTB = (Textbox) getFellow("propertyCode");
Textbox descriptionTB = (Textbox) getFellow("description");
supplierNameTB.setText(form.getSupplierShortName());
Iterator priorityCBItr = priorityCB.getItems().iterator();
while (priorityCBItr.hasNext()) {
Comboitem item = (Comboitem) priorityCBItr.next();
if (item.getValue().toString().equals(form.getPriority())) {
priorityCB.setSelectedItem(item);
}
}
propertyCodeTB.setText(form.getPropertyCode());
descriptionTB.setText(form.getDescription());