public boolean validate() {
throw new UnsupportedOperationException("Not supported yet.");
}
public Object viewToObj(Object obj) {
Bom var = new Bom();
if (obj != null) {
try {
BeanUtils.copyProperties(var, obj);
} catch (Exception iae) {
iae.printStackTrace();
}
}
Listbox buildingListbox = (Listbox) getFellow("buildingListbox");
Combobox equipmentCB = (Combobox) getFellow("equipment");
Textbox floorTB = (Textbox) getFellow("floor");
Textbox regionTB = (Textbox) getFellow("region");
Combobox priorityCB = (Combobox) getFellow("priority");
Textbox propertyCodeTB = (Textbox) getFellow("propertyCode");
Textbox descriptionTB = (Textbox) getFellow("description");
Building building = (Building) buildingListbox.getSelectedItem().getValue();
var.setBuilding(building);
Equipment equ = (Equipment) equipmentCB.getSelectedItem().getValue();
var.setEquipment(equ);
var.setFloor(floorTB.getText());
var.setRegion(regionTB.getText());
var.setPriority(priorityCB.getSelectedItem().getValue().toString());
var.setPropertyCode(propertyCodeTB.getText());
var.setDescription(descriptionTB.getText());
return var;
}