refreshing RegistrationWorkingsetPresenter on popup editor close
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Thu, 25 Jan 2018 15:37:06 +0000 (16:37 +0100)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Thu, 25 Jan 2018 15:37:06 +0000 (16:37 +0100)
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkingsetPresenter.java

index 73123df83181dd3edf991a46b42ca909ec10635d..c5f524701b9e95f890441bde17dcfc4ba0fb2639 100644 (file)
@@ -226,6 +226,24 @@ public class RegistrationWorkingsetPresenter extends AbstractPresenter<Registrat
         popup.loadInEditor(event.getEntityId());
     }
 
+    @EventListener
+    public void onDoneWithReferencePopupEditor(DoneWithPopupEvent event) throws RegistrationValidationException{
+        if(event.getPopup() instanceof ReferencePopupEditor){
+            if(event.getReason().equals(Reason.SAVE)){
+                refreshView(true);
+            }
+        }
+    }
+
+    @EventListener
+    public void onDoneWithSpecimenTypeDesignationWorkingsetPopupEditor(DoneWithPopupEvent event) throws RegistrationValidationException{
+        if(event.getPopup() instanceof SpecimenTypeDesignationWorkingsetPopupEditor){
+            if(event.getReason().equals(Reason.SAVE)){
+                refreshView(true);
+            }
+        }
+    }
+
     @EventListener(condition = "#event.type == T(eu.etaxonomy.vaadin.event.EditorActionType).EDIT")
     public void onRegistrationEditorAction(RegistrationEditorAction event) {