Search in sources :

Example 1 with DatabaseForm

use of org.activityinfo.ui.client.page.config.form.DatabaseForm in project activityinfo by bedatadriven.

the class DbListPresenter method onRename.

public void onRename() {
    DatabaseForm form = new DatabaseForm(dispatcher);
    form.getBinding().bind(selection);
    // it's not allowed to change country by design
    form.hideCountryField();
    final FormDialogImpl dialog = new FormDialogImpl(form);
    dialog.setWidth(400);
    dialog.setHeight(170);
    dialog.setHeadingText(I18N.CONSTANTS.renameDatabase());
    dialog.show(new FormDialogCallback() {

        @Override
        public void onValidated() {
            update(selection, dialog);
        }
    });
}
Also used : FormDialogImpl(org.activityinfo.ui.client.page.common.dialog.FormDialogImpl) FormDialogCallback(org.activityinfo.ui.client.page.common.dialog.FormDialogCallback) DatabaseForm(org.activityinfo.ui.client.page.config.form.DatabaseForm)

Aggregations

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