Revision 9a1b0c01
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/registration/RegistrationWorkflowPresenter.java | ||
---|---|---|
113 | 113 |
getView().setWorkingset(workingset); |
114 | 114 |
} |
115 | 115 |
|
116 |
@EventListener(condition = "#event.eventType ==T(eu.etaxonomy.cdm.vaadin.event.EntityEventType).ADD")
|
|
116 |
@EventListener(condition = "#event.type ==T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Type).ADD")
|
|
117 | 117 |
public void onReferenceAddEvent(ReferenceEditorAction event) { |
118 | 118 |
Reference reference = ReferenceFactory.newGeneric(); |
119 | 119 |
ReferencePopupEditor popup = getNavigationManager().showInPopup(ReferencePopupEditor.class); |
120 | 120 |
popup.showInEditor(reference); |
121 | 121 |
} |
122 | 122 |
|
123 |
@EventListener(condition = "#event.eventType ==T(eu.etaxonomy.cdm.vaadin.event.EntityEventType).EDIT")
|
|
123 |
@EventListener(condition = "#event.type ==T(eu.etaxonomy.cdm.vaadin.event.AbstractEditorAction.Type).EDIT")
|
|
124 | 124 |
public void onReferenceEditEvent(ReferenceEditorAction event) { |
125 | 125 |
Reference reference = getRepo().getReferenceService().find(event.getEntityId()); |
126 | 126 |
ReferencePopupEditor popup = getNavigationManager().showInPopup(ReferencePopupEditor.class); |
... | ... | |
128 | 128 |
} |
129 | 129 |
|
130 | 130 |
|
131 |
@EventListener(classes=ShowDetailsEvent.class, condition = "#event.entityType == T(eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet)")
|
|
131 |
@EventListener(classes=ShowDetailsEvent.class, condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet)")
|
|
132 | 132 |
public void onShowRegistrationWorkingSetMessages(ShowDetailsEvent<?,?> event) { // WARNING don't use more specific generic type arguments |
133 | 133 |
List<String> messages = new ArrayList<>(); |
134 | 134 |
for(RegistrationDTO dto : workingset.getRegistrationDTOs()){ |
... | ... | |
139 | 139 |
} |
140 | 140 |
} |
141 | 141 |
|
142 |
@EventListener(classes=ShowDetailsEvent.class, condition = "#event.entityType == T(eu.etaxonomy.cdm.vaadin.view.registration.RegistrationDTO)")
|
|
142 |
@EventListener(classes=ShowDetailsEvent.class, condition = "#event.type == T(eu.etaxonomy.cdm.vaadin.view.registration.RegistrationDTO)")
|
|
143 | 143 |
public void onShowRegistrationMessages(ShowDetailsEvent<?,?> event) { // WARNING don't use more specific generic type arguments |
144 | 144 |
RegistrationDTO regDto = workingSetService.loadDtoById((Integer)event.getIdentifier()); |
145 | 145 |
if(event.getProperty().equals("messages")){ |
Also available in: Unified diff
ref #6612 updating UI components on modified References - bugfixes