Package io.jmix.ui.navigation
Class NavigationState
java.lang.Object
io.jmix.ui.navigation.NavigationState
Immutable object of this class represents some navigation state determined by URL fragment.
For example, if URL is:
http://host:port/app/#main/12/orders/view?id=a9fc2d30b51ef30b7e4b5a1c2d
URL fragment will be:
main/12/orders/view?id=a9fc2d30b51ef30b7e4b5a1c2d
Where:
main
- root screen route (in this case route ofAppMainWindow
)12
- URL state markorders/view
- route of nested screen (or screens)id=a9fc2d30b51ef30b7e4b5a1c2d
- parameter
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
EMPTY
-
root
-
stateMark
-
nestedRoute
-
params
-
-
Constructor Details
-
NavigationState
-
-
Method Details
-
getRoot
-
getStateMark
-
getNestedRoute
-
getParams
-
getParamsString
- Returns:
- joined by "&" sign URL params, or empty string if no params for this state
-
asRoute
- Returns:
- current state combined into URL fragment, e.g.
main/0/orders?status=shipped
-
equals
-
hashCode
public int hashCode() -
toString
-