Search in sources :

Example 1 with UpdateReportModel

use of org.activityinfo.shared.command.UpdateReportModel in project activityinfo by bedatadriven.

the class ReportDesignPage method performUpdate.

private void performUpdate(final AsyncMonitor monitor, final AsyncCallback<VoidResult> callback) {
    UpdateReportModel updateReport = new UpdateReportModel();
    updateReport.setModel(currentModel);
    dispatcher.execute(updateReport, monitor, new AsyncCallback<VoidResult>() {

        @Override
        public void onFailure(final Throwable caught) {
            callback.onFailure(caught);
        }

        @Override
        public void onSuccess(final VoidResult result) {
            dirty = false;
            callback.onSuccess(result);
        }
    });
}
Also used : VoidResult(org.activityinfo.shared.command.result.VoidResult) UpdateReportModel(org.activityinfo.shared.command.UpdateReportModel)

Aggregations

UpdateReportModel (org.activityinfo.shared.command.UpdateReportModel)1 VoidResult (org.activityinfo.shared.command.result.VoidResult)1