Revision be4a9789
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/vaadin/ui/navigation/ViewChangeListenerBean.java | ||
---|---|---|
3 | 3 |
import java.util.Collection; |
4 | 4 |
|
5 | 5 |
import org.springframework.beans.factory.annotation.Autowired; |
6 |
import org.springframework.context.ApplicationEventPublisher; |
|
7 | 6 |
import org.springframework.context.annotation.Lazy; |
7 |
import org.vaadin.spring.events.EventBus.UIEventBus; |
|
8 | 8 |
|
9 | 9 |
import com.vaadin.navigator.View; |
10 | 10 |
import com.vaadin.navigator.ViewChangeListener; |
... | ... | |
24 | 24 |
private NavigationManager navigationManager; |
25 | 25 |
|
26 | 26 |
@Autowired |
27 |
ApplicationEventPublisher eventBus;
|
|
27 |
UIEventBus uiEventBus;
|
|
28 | 28 |
|
29 | 29 |
@Override |
30 | 30 |
public boolean beforeViewChange(ViewChangeEvent event) { |
... | ... | |
43 | 43 |
|
44 | 44 |
@Override |
45 | 45 |
public void afterViewChange(ViewChangeEvent event) { |
46 |
eventBus.publishEvent(new AfterViewChangeEvent());
|
|
46 |
uiEventBus.publish(this, new AfterViewChangeEvent());
|
|
47 | 47 |
} |
48 | 48 |
|
49 | 49 |
} |
Also available in: Unified diff
fix #7231 replacing SpringApplicationEventBus by scoped Vaadin4Spring Event Bus