use of org.activityinfo.client.page.config.form.DatabaseForm in project activityinfo by bedatadriven.
the class DbListPresenter method onAdd.
public void onAdd() {
final UserDatabaseDTO db = new UserDatabaseDTO();
DatabaseForm form = new DatabaseForm(dispatcher);
form.getBinding().bind(db);
final FormDialogImpl dialog = new FormDialogImpl(form);
dialog.setWidth(400);
dialog.setHeight(200);
dialog.setHeading(I18N.CONSTANTS.newDatabase());
dialog.show(new FormDialogCallback() {
@Override
public void onValidated() {
save(db, dialog);
}
});
}
Aggregations