public boolean validate() {
return true;
}
public Object viewToObj(Object obj) {
Auth var = new Auth();
if (obj != null) {
try {
BeanUtils.copyProperties(var, obj);
} catch (Exception e) {
e.printStackTrace();
}
}
var.setOperateBy(operateBy);
Textbox authNameTB = (Textbox) getFellow("authName");
Textbox authTypeTB = (Textbox) getFellow("authType");
Textbox unitIDTB = (Textbox) getFellow("unitId");
Textbox authDescTB = (Textbox) getFellow("authDescription");
Radiogroup editable = (Radiogroup) getFellow("editable");
var.setAuthName(authNameTB.getText());
var.setAuthType(authTypeTB.getText());
var.setUnitId(unitIDTB.getText());
var.setAuthDescription(authDescTB.getText());
var.setEditable(editable.getSelectedItem().getValue());
return var;
}