Search in sources :

Example 1 with TargetForm

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

Aggregations

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