public class UrlChangeHandler
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Field and Description |
---|---|
protected java.util.List<NavigationFilter> |
accessFilters |
protected BeanLocator |
beanLocator |
protected HistoryNavigator |
historyNavigator |
protected Messages |
messages |
protected ScreenNavigator |
screenNavigator |
protected AppUI |
ui |
protected WebConfig |
webConfig |
protected WindowConfig |
windowConfig |
Constructor and Description |
---|
UrlChangeHandler(AppUI ui) |
@Inject protected Messages messages
@Inject protected WebConfig webConfig
@Inject protected WindowConfig windowConfig
@Inject protected java.util.List<NavigationFilter> accessFilters
@Inject protected BeanLocator beanLocator
protected AppUI ui
protected HistoryNavigator historyNavigator
protected ScreenNavigator screenNavigator
public UrlChangeHandler(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()
protected void __handleUrlChange(NavigationState requestedState)
@Nullable protected Screen getActiveScreen()
@Nullable protected Screen findScreenByState(java.util.Collection<Screen> screens, NavigationState requestedState)
protected void handleNoAuthNavigation(NavigationState requestedState)
protected void reloadApp()
protected boolean isRootState(NavigationState requestedState)
protected boolean isCurrentRootState(NavigationState requestedState)
protected java.lang.String getStateMark(Screen screen)
protected Screen findActiveScreenByState(NavigationState requestedState)
protected Screen findScreenByState(NavigationState requestedState)
protected void selectScreen(Screen screen)
protected void showNotification(java.lang.String msg)
protected void revertNavigationState()
protected boolean notSuitableMode()
protected NavigationState getResolvedState(Screen screen)
protected NavigationFilter.AccessCheckResult navigationAllowed(NavigationState requestedState)
protected Screens.OpenedScreens getOpenedScreens()
protected boolean closeWindowStack(Screens.WindowStack windowStack)
public boolean isNotCloseable(Window window)
protected boolean isWindowClosePrevented(Window window)