Search in sources :

Example 1 with View

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());
    }
}
Also used : View(com.vaadin.navigator.View)

Aggregations

View (com.vaadin.navigator.View)1