Search in sources :

Example 1 with TargetForm

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;
}
Also used : FormDialogImpl(org.activityinfo.client.page.common.dialog.FormDialogImpl) TargetForm(org.activityinfo.client.page.config.form.TargetForm)

Aggregations

FormDialogImpl (org.activityinfo.client.page.common.dialog.FormDialogImpl)1 TargetForm (org.activityinfo.client.page.config.form.TargetForm)1