Class UrlChangeHandler

java.lang.Object
io.jmix.ui.navigation.UrlChangeHandler
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@UIScope @Component("ui_UrlChangeHandler") public class UrlChangeHandler extends Object implements org.springframework.beans.factory.InitializingBean
  • Field Details

    • messages

      @Autowired protected Messages messages
    • applicationContext

      @Autowired protected org.springframework.context.ApplicationContext applicationContext
    • urlTools

      @Autowired protected UrlTools urlTools
    • uiProperties

      @Autowired protected UiProperties uiProperties
    • windowConfig

      @Autowired protected WindowConfig windowConfig
    • accessManager

      @Autowired protected AccessManager accessManager
    • ui

      protected AppUI ui
    • historyNavigator

      protected HistoryNavigator historyNavigator
    • screenNavigator

      protected ScreenNavigator screenNavigator
    • redirectHandler

      protected RedirectHandler redirectHandler
  • Constructor Details

    • UrlChangeHandler

      public UrlChangeHandler()
  • Method Details

    • setAppUi

      @Autowired public void setAppUi(AppUI ui)
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • handleUrlChange

      public void handleUrlChange(com.vaadin.server.Page.PopStateEvent event)
    • getScreenNavigator

      public ScreenNavigator getScreenNavigator()
    • getRedirectHandler

      @Nullable public RedirectHandler getRedirectHandler()
    • setRedirectHandler

      public void setRedirectHandler(RedirectHandler redirectHandler)
    • __handleUrlChange

      protected void __handleUrlChange(NavigationState requestedState)
    • getActiveScreen

      @Nullable public Screen getActiveScreen()
    • findActiveScreenByState

      @Nullable public Screen findActiveScreenByState(NavigationState requestedState)
    • restoreState

      public void restoreState()
    • shouldRedirect

      public boolean shouldRedirect(WindowInfo windowInfo)
    • redirect

      public void redirect(NavigationState navigationState)
    • isPermittedToNavigate

      public boolean isPermittedToNavigate(NavigationState requestedState, WindowInfo windowInfo)
    • showNotification

      public void showNotification(String msg)
    • revertNavigationState

      public void revertNavigationState()
    • getResolvedState

      public NavigationState getResolvedState(@Nullable Screen screen)
    • isEmptyState

      public boolean isEmptyState(@Nullable NavigationState requestedState)
    • isRootRoute

      public boolean isRootRoute(@Nullable WindowInfo windowInfo)
    • isRootState

      public boolean isRootState(@Nullable NavigationState requestedState)
    • isCurrentRootState

      protected boolean isCurrentRootState(NavigationState requestedState)
    • reloadApp

      protected void reloadApp()
    • getStateMark

      protected String getStateMark(Screen screen)
    • findScreenByState

      @Nullable protected Screen findScreenByState(NavigationState requestedState)
    • findScreenByState

      @Nullable protected Screen findScreenByState(Collection<Screen> screens, NavigationState requestedState)
    • selectScreen

      protected void selectScreen(@Nullable Screen screen)
    • notSuitableMode

      protected boolean notSuitableMode()
    • getOpenedScreens

      protected Screens.OpenedScreens getOpenedScreens()
    • isNotCloseable

      public boolean isNotCloseable(Window window)
    • closeWindowStack

      protected boolean closeWindowStack(Screens.WindowStack windowStack)
    • isWindowClosePrevented

      protected boolean isWindowClosePrevented(Window window)