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
Modifier and TypeFieldDescriptionprotected AccessManager
protected org.springframework.context.ApplicationContext
protected HistoryNavigator
protected Messages
protected List<NavigationFilter>
protected RedirectHandler
protected ScreenNavigator
protected AppUI
protected UiProperties
protected UrlTools
protected WindowConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__handleUrlChange
(NavigationState requestedState) void
protected boolean
closeWindowStack
(Screens.WindowStack windowStack) findActiveScreenByState
(NavigationState requestedState) protected Screen
findScreenByState
(NavigationState requestedState) protected Screen
findScreenByState
(Collection<Screen> screens, NavigationState requestedState) protected Screens.OpenedScreens
getResolvedState
(Screen screen) protected String
getStateMark
(Screen screen) void
handleUrlChange
(com.vaadin.server.Page.PopStateEvent event) protected boolean
isCurrentRootState
(NavigationState requestedState) boolean
isEmptyState
(NavigationState requestedState) boolean
isNotCloseable
(Window window) boolean
isPermittedToNavigate
(NavigationState requestedState, WindowInfo windowInfo) boolean
isRootRoute
(WindowInfo windowInfo) boolean
isRootState
(NavigationState requestedState) protected boolean
isWindowClosePrevented
(Window window) navigationAllowed
(NavigationState requestedState) protected boolean
void
redirect
(NavigationState navigationState) protected void
void
void
protected void
selectScreen
(Screen screen) void
void
setRedirectHandler
(RedirectHandler redirectHandler) boolean
shouldRedirect
(WindowInfo windowInfo) void
showNotification
(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:
afterPropertiesSet
in 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
-