Search in sources :

Example 1 with SetFormDataAction

use of edu.stanford.bmir.protege.web.shared.form.SetFormDataAction in project webprotege by protegeproject.

the class CollectionPresenter method submitFormData.

private void submitFormData() {
    GWT.log("[CollectionPresenter] Submitting form data.  Current place is " + current);
    FormData formData = formPresenter.getFormData();
    current.ifPresent(subject -> {
        GWT.log("[CollectionPresenter] Saving data for " + subject.getSelection());
        dispatchServiceManager.execute(new SetFormDataAction(subject.getProjectId(), subject.getCollectionId(), subject.getSelection().get(), subject.getFormId(), formData), result -> {
        });
    });
}
Also used : FormData(edu.stanford.bmir.protege.web.shared.form.FormData) SetFormDataAction(edu.stanford.bmir.protege.web.shared.form.SetFormDataAction)

Aggregations

FormData (edu.stanford.bmir.protege.web.shared.form.FormData)1 SetFormDataAction (edu.stanford.bmir.protege.web.shared.form.SetFormDataAction)1