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);
}
});
}
Aggregations