use of org.activityinfo.ui.client.page.config.form.TargetForm in project activityinfo by bedatadriven.
the class DbTargetGrid method showAddDialog.
@Override
public FormDialogTether showAddDialog(TargetDTO target, UserDatabaseDTO db, boolean editDialog, 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);
if (editDialog) {
dlg.setHeadingText(messages.editTarget());
} else {
dlg.setHeadingText(messages.createTarget());
}
dlg.show(callback);
return dlg;
}
Aggregations