Package io.jmix.ui.navigation
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 Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected org.springframework.context.ApplicationContextprotected HistoryNavigatorprotected Messagesprotected List<NavigationFilter>protected RedirectHandlerprotected ScreenNavigatorprotected AppUIprotected UiPropertiesprotected UrlToolsprotected WindowConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void__handleUrlChange(NavigationState requestedState) voidprotected booleancloseWindowStack(Screens.WindowStack windowStack) findActiveScreenByState(NavigationState requestedState) protected ScreenfindScreenByState(NavigationState requestedState) protected ScreenfindScreenByState(Collection<Screen> screens, NavigationState requestedState) protected Screens.OpenedScreensgetResolvedState(Screen screen) protected StringgetStateMark(Screen screen) voidhandleUrlChange(com.vaadin.server.Page.PopStateEvent event) protected booleanisCurrentRootState(NavigationState requestedState) booleanisEmptyState(NavigationState requestedState) booleanisNotCloseable(Window window) booleanisPermittedToNavigate(NavigationState requestedState, WindowInfo windowInfo) booleanisRootRoute(WindowInfo windowInfo) booleanisRootState(NavigationState requestedState) protected booleanisWindowClosePrevented(Window window) navigationAllowed(NavigationState requestedState) protected booleanvoidredirect(NavigationState navigationState) protected voidvoidvoidprotected voidselectScreen(Screen screen) voidvoidsetRedirectHandler(RedirectHandler redirectHandler) booleanshouldRedirect(WindowInfo windowInfo) voidshowNotification(String msg)
-
Field Details
-
messages
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext -
urlTools
-
uiProperties
-
windowConfig
-
accessManager
-
ui
-
redirectHandler
-
-
Constructor Details
-
UrlChangeHandler
public UrlChangeHandler()
-
-
Method Details
-
setAppUi
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
handleUrlChange
public void handleUrlChange(com.vaadin.server.Page.PopStateEvent event) -
getRedirectHandler
-
getActiveScreen
-
restoreState
public void restoreState() -
shouldRedirect
-
showNotification
-
getResolvedState
-
isRootRoute
-
reloadApp
protected void reloadApp() -
getStateMark
-
selectScreen
-
notSuitableMode
protected boolean notSuitableMode() -
getOpenedScreens
-
isNotCloseable
-
closeWindowStack
-
isWindowClosePrevented
-