Package io.jmix.ui.navigation
Class WebUrlRouting
java.lang.Object
io.jmix.ui.navigation.WebUrlRouting
- All Implemented Interfaces:
UrlRouting
@UIScope
@Component("ui_UrlRouting")
public class WebUrlRouting
extends Object
implements UrlRouting
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.navigation.UrlRouting
UrlRouting.RouteGenerator
-
Field Summary
Modifier and TypeFieldDescriptionprotected EntityStates
protected String
protected static final int
protected Metadata
static final String
protected Screens
protected AppUI
protected UiProperties
protected UrlTools
protected WindowConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
buildDialogRoute
(Screen dialog) protected NavigationState
buildNavState
(Screen screen, Map<String, String> urlParams) protected String
buildNestedRoute
(Screen screen) buildParams
(Screen screen, Map<String, String> urlParams) protected String
buildScreenRoute
(Screen screen) protected String
buildSubRoute
(String prevSubRoute, Screen screen) protected boolean
checkConditions
(Screen screen, Map<String, String> urlParams) protected boolean
externalNavigation
(NavigationState currentState, NavigationState newState) protected Screen
findActiveScreenByState
(NavigationState requestedState) protected Screen
findScreenByState
(Collection<Screen> screens, NavigationState requestedState) protected Screens.OpenedScreens
protected String
getParentPrefix
(Screen screen) protected String
protected RouteDefinition
getRouteDef
(Screen screen) getState()
protected String
getStateMark
(Screen screen) protected boolean
protected boolean
isNotFoundScreen
(Screen screen) protected boolean
notAttachedToUi
(Screen screen) protected boolean
omitParams
(Screen screen) void
Pushes the state corresponding to the givenscreen
.void
replaceState
(Screen screen, Map<String, String> urlParams) Replaces current state by the state corresponding to the givenscreen
.void
protected void
updateState
(Screen screen, Map<String, String> urlParams, boolean pushState) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.navigation.UrlRouting
pushState, replaceState
-
Field Details
-
NEW_ENTITY_ID
- See Also:
-
MAX_NESTING
protected static final int MAX_NESTING- See Also:
-
uiProperties
-
windowConfig
-
metadata
-
urlTools
-
entityStates
-
screens
-
ui
-
lastHistoryOperation
-
-
Constructor Details
-
WebUrlRouting
public WebUrlRouting()
-
-
Method Details
-
setAppUi
-
pushState
Description copied from interface:UrlRouting
Pushes the state corresponding to the givenscreen
.The given
urlParams
will be reflected in URI as GET request params.Creates new entry in browser history.
- Specified by:
pushState
in interfaceUrlRouting
- Parameters:
screen
- screen that is used to build new navigation stateurlParams
- URI params map
-
replaceState
Description copied from interface:UrlRouting
Replaces current state by the state corresponding to the givenscreen
.The given
urlParams
will be reflected in URI as GET request params.Doesn't create new entry in browser history.
- Specified by:
replaceState
in interfaceUrlRouting
- Parameters:
screen
- screen that is used to build new navigation stateurlParams
- URI params map
-
getState
- Specified by:
getState
in interfaceUrlRouting
- Returns:
- current state parsed from URI fragment.
-
getRouteGenerator
- Specified by:
getRouteGenerator
in interfaceUrlRouting
- Returns:
UrlRouting.RouteGenerator
instance
-
updateState
-
buildNestedRoute
-
buildDialogRoute
-
buildScreenRoute
-
buildSubRoute
-
buildParams
-
getParentPrefix
-
omitParams
-
isEditor
-
getRoute
-
getRouteDef
-
getStateMark
-
getOpenedScreens
-
checkConditions
-
notAttachedToUi
-
getLastHistoryOperation
- Specified by:
getLastHistoryOperation
in interfaceUrlRouting
-
isNotFoundScreen
-