use of com.vaadin.navigator.View in project vaadin-tips by marcushellberg.
the class PageTitleUpdater method afterViewChange.
@Override
public void afterViewChange(ViewChangeEvent event) {
View view = event.getNewView();
ViewConfig viewConfig = view.getClass().getAnnotation(ViewConfig.class);
if (viewConfig != null) {
Page.getCurrent().setTitle(viewConfig.displayName());
}
}
Aggregations