}
ReferencePopupEditor popup = getNavigationManager().showInPopup(ReferencePopupEditor.class);
+ popup.withReferenceTypes(RegistrationUIDefaults.PRINTPUB_REFERENCE_TYPES);
popup.loadInEditor(null);
}
return;
}
ReferencePopupEditor popup = getNavigationManager().showInPopup(ReferencePopupEditor.class);
+ popup.withReferenceTypes(RegistrationUIDefaults.PRINTPUB_REFERENCE_TYPES);
popup.withDeleteButton(true);
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) {