public boolean validate() {
return true;
}
public Object viewToObj(Object obj) {
Org var = new Org();
if (obj != null) {
try {
BeanUtils.copyProperties(var, obj);
} catch (Exception iae) {
iae.printStackTrace();
}
}
var.setOperateBy(operateBy);
Textbox orgNameTB = (Textbox) getFellow("orgName");
Combobox orgTypeCB = (Combobox) getFellow("orgType");
Combobox orgPropertyCB = (Combobox) getFellow("orgProperty");
var.setOrgName(orgNameTB.getText());
if (orgTypeCB.getSelectedItem() != null) {
var.setOrgType(orgTypeCB.getSelectedItem().getValue().toString());
}
if (orgPropertyCB.getSelectedItem() != null) {
var.setOrgProperty(orgPropertyCB.getSelectedItem().getValue().toString());
}
return var;