*/
return isValid;
}
private void objToSubview(DutyForm form) {
DutyForm obj = form;
Label userNameLB = (Label) getFellow("userName");
userNameLB.setValue(user.getUserName());
Listbox authListbox = (Listbox) getFellow("auth");
Iterator authItr = authListbox.getItems().iterator();
while (authItr.hasNext()) {
Listitem item = (Listitem) authItr.next();
AuthForm authForm = (AuthForm) item.getValue();
if (authForm.getAuthId().toString().equals(obj.getAuthId().toString())) {
authListbox.setSelectedItem(item);
}
}
Datebox validAfterDate = (Datebox) getFellow("validAfterDate");
Timebox validAfterTime = (Timebox) getFellow("validAfterTime");
if (obj.getValidAfter() != null) {
validAfterDate.setValue(obj.getValidAfter());
validAfterTime.setValue(obj.getValidAfter());
}
Datebox validBeforeDate = (Datebox) getFellow("validBeforeDate");
Timebox validBeforeTime = (Timebox) getFellow("validBeforeTime");
if (obj.getValidBefore() != null) {
validBeforeDate.setValue(obj.getValidBefore());
validBeforeTime.setValue(obj.getValidBefore());
}
}