Search in sources :

Example 1 with History

use of com.haulmont.cuba.web.sys.navigation.History 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);
}
Also used : WebHistory(com.haulmont.cuba.web.sys.navigation.WebHistory) History(com.haulmont.cuba.web.sys.navigation.History) WebHistory(com.haulmont.cuba.web.sys.navigation.WebHistory) UrlChangeHandler(com.haulmont.cuba.web.sys.navigation.UrlChangeHandler) UrlRouting(com.haulmont.cuba.gui.UrlRouting) Inject(javax.inject.Inject)

Aggregations

UrlRouting (com.haulmont.cuba.gui.UrlRouting)1 History (com.haulmont.cuba.web.sys.navigation.History)1 UrlChangeHandler (com.haulmont.cuba.web.sys.navigation.UrlChangeHandler)1 WebHistory (com.haulmont.cuba.web.sys.navigation.WebHistory)1 Inject (javax.inject.Inject)1