@UIScope
@Component(value="ui_UrlChangeHandler")
public class UrlChangeHandler
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected io.jmix.core.AccessManager |
accessManager |
protected org.springframework.context.ApplicationContext |
applicationContext |
protected HistoryNavigator |
historyNavigator |
protected io.jmix.core.Messages |
messages |
protected java.util.List<NavigationFilter> |
navigationFilters |
protected RedirectHandler |
redirectHandler |
protected ScreenNavigator |
screenNavigator |
protected AppUI |
ui |
protected UiProperties |
uiProperties |
protected UrlTools |
urlTools |
protected WindowConfig |
windowConfig |
Constructor and Description |
---|
UrlChangeHandler() |
@Autowired protected io.jmix.core.Messages messages
@Autowired protected org.springframework.context.ApplicationContext applicationContext
@Autowired protected UrlTools urlTools
@Autowired protected UiProperties uiProperties
@Autowired protected WindowConfig windowConfig
@Autowired protected java.util.List<NavigationFilter> navigationFilters
@Autowired protected io.jmix.core.AccessManager accessManager
protected AppUI ui
protected HistoryNavigator historyNavigator
protected ScreenNavigator screenNavigator
protected RedirectHandler redirectHandler
@Autowired public void setAppUi(AppUI ui)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void handleUrlChange(com.vaadin.server.Page.PopStateEvent event)
public ScreenNavigator getScreenNavigator()
@Nullable public RedirectHandler getRedirectHandler()
public void setRedirectHandler(RedirectHandler redirectHandler)
protected void __handleUrlChange(NavigationState requestedState)
@Nullable public Screen getActiveScreen()
@Nullable public Screen findActiveScreenByState(NavigationState requestedState)
public void restoreState()
public boolean shouldRedirect(WindowInfo windowInfo)
public void redirect(NavigationState navigationState)
public boolean isPermittedToNavigate(NavigationState requestedState, WindowInfo windowInfo)
public void showNotification(java.lang.String msg)
public void revertNavigationState()
public NavigationState getResolvedState(@Nullable Screen screen)
public NavigationFilter.AccessCheckResult navigationAllowed(NavigationState requestedState)
public boolean isEmptyState(@Nullable NavigationState requestedState)
public boolean isRootRoute(@Nullable WindowInfo windowInfo)
public boolean isRootState(@Nullable NavigationState requestedState)
protected boolean isCurrentRootState(NavigationState requestedState)
protected void reloadApp()
protected java.lang.String getStateMark(Screen screen)
@Nullable protected Screen findScreenByState(NavigationState requestedState)
@Nullable protected Screen findScreenByState(java.util.Collection<Screen> screens, NavigationState requestedState)
protected void selectScreen(@Nullable Screen screen)
protected boolean notSuitableMode()
protected Screens.OpenedScreens getOpenedScreens()
public boolean isNotCloseable(Window window)
protected boolean closeWindowStack(Screens.WindowStack windowStack)
protected boolean isWindowClosePrevented(Window window)