use of org.activityinfo.client.page.config.form.TargetForm in project activityinfo by bedatadriven.
the class DbTargetGrid method showAddDialog.
@Override
public FormDialogTether showAddDialog(TargetDTO target, UserDatabaseDTO db, FormDialogCallback callback) {
TargetForm form = new TargetForm(db);
form.getBinding().setStore(store);
form.getBinding().bind(store.getRecord(target).getModel());
FormDialogImpl<TargetForm> dlg = new FormDialogImpl<TargetForm>(form);
dlg.setWidth(450);
dlg.setHeight(300);
dlg.setHeading(messages.createTarget());
dlg.show(callback);
return dlg;
}
Aggregations