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 ClassesNested classes/interfaces inherited from interface io.jmix.ui.navigation.UrlRouting
UrlRouting.RouteGenerator -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EntityStatesprotected Stringprotected static final intprotected Metadatastatic final Stringprotected Screensprotected AppUIprotected UiPropertiesprotected UrlToolsprotected WindowConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildDialogRoute(Screen dialog) protected NavigationStatebuildNavState(Screen screen, Map<String, String> urlParams) protected StringbuildNestedRoute(Screen screen) buildParams(Screen screen, Map<String, String> urlParams) protected StringbuildScreenRoute(Screen screen) protected StringbuildSubRoute(String prevSubRoute, Screen screen) protected booleancheckConditions(Screen screen, Map<String, String> urlParams) protected booleanexternalNavigation(NavigationState currentState, NavigationState newState) protected ScreenfindActiveScreenByState(NavigationState requestedState) protected ScreenfindScreenByState(Collection<Screen> screens, NavigationState requestedState) protected Screens.OpenedScreensprotected StringgetParentPrefix(Screen screen) protected Stringprotected RouteDefinitiongetRouteDef(Screen screen) getState()protected StringgetStateMark(Screen screen) protected booleanprotected booleanisNotFoundScreen(Screen screen) protected booleannotAttachedToUi(Screen screen) protected booleanomitParams(Screen screen) voidPushes the state corresponding to the givenscreen.voidreplaceState(Screen screen, Map<String, String> urlParams) Replaces current state by the state corresponding to the givenscreen.voidprotected voidupdateState(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, waitMethods 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:UrlRoutingPushes the state corresponding to the givenscreen.The given
urlParamswill be reflected in URI as GET request params.Creates new entry in browser history.
- Specified by:
pushStatein interfaceUrlRouting- Parameters:
screen- screen that is used to build new navigation stateurlParams- URI params map
-
replaceState
Description copied from interface:UrlRoutingReplaces current state by the state corresponding to the givenscreen.The given
urlParamswill be reflected in URI as GET request params.Doesn't create new entry in browser history.
- Specified by:
replaceStatein interfaceUrlRouting- Parameters:
screen- screen that is used to build new navigation stateurlParams- URI params map
-
getState
- Specified by:
getStatein interfaceUrlRouting- Returns:
- current state parsed from URI fragment.
-
getRouteGenerator
- Specified by:
getRouteGeneratorin interfaceUrlRouting- Returns:
UrlRouting.RouteGeneratorinstance
-
updateState
-
buildNestedRoute
-
buildDialogRoute
-
buildScreenRoute
-
buildSubRoute
-
buildParams
-
getParentPrefix
-
omitParams
-
isEditor
-
getRoute
-
getRouteDef
-
getStateMark
-
getOpenedScreens
-
checkConditions
-
notAttachedToUi
-
getLastHistoryOperation
- Specified by:
getLastHistoryOperationin interfaceUrlRouting
-
isNotFoundScreen
-