use of com.haulmont.cuba.web.sys.navigation.WebHistory in project cuba by cuba-platform.
the class AppUI method setApplicationContext.
@Inject
protected void setApplicationContext(ApplicationContext applicationContext) {
Dialogs dialogs = new WebDialogs(this);
autowireContext(dialogs, applicationContext);
setDialogs(dialogs);
Notifications notifications = new WebNotifications(this);
autowireContext(notifications, applicationContext);
setNotifications(notifications);
WebBrowserTools webBrowserTools = new WebBrowserToolsImpl(this);
autowireContext(webBrowserTools, applicationContext);
setWebBrowserTools(webBrowserTools);
Fragments fragments = new WebFragments(this);
autowireContext(fragments, applicationContext);
setFragments(fragments);
Screens screens = new WebScreens(this);
autowireContext(screens, applicationContext);
setScreens(screens);
UrlRouting urlRouting = new WebUrlRouting(this);
autowireContext(urlRouting, applicationContext);
setUrlRouting(urlRouting);
History history = new WebHistory(this);
autowireContext(history, applicationContext);
setHistory(history);
UrlChangeHandler urlChangeHandler = new UrlChangeHandler(this);
autowireContext(urlChangeHandler, applicationContext);
setUrlChangeHandler(urlChangeHandler);
getPage().addPopStateListener(urlChangeHandler::handleUrlChange);
}
Aggregations