Search in sources :

Example 1 with PageTitleUpdater

use of org.vaadin.marcus.util.PageTitleUpdater in project vaadin-tips by marcushellberg.

the class AwesomeApp method setupNavigator.

private void setupNavigator() {
    navigator = new Navigator(DemoUI.getCurrent(), content);
    registerViews();
    // Add view change listeners so we can do things like select the correct menu item and update the page title
    navigator.addViewChangeListener(navBar);
    navigator.addViewChangeListener(new PageTitleUpdater());
    navigator.navigateTo(navigator.getState());
}
Also used : Navigator(com.vaadin.navigator.Navigator) PageTitleUpdater(org.vaadin.marcus.util.PageTitleUpdater)

Aggregations

Navigator (com.vaadin.navigator.Navigator)1 PageTitleUpdater (org.vaadin.marcus.util.PageTitleUpdater)1