Package io.jmix.tabbedmode.navigation
Class RedirectHandler
java.lang.Object
io.jmix.tabbedmode.navigation.RedirectHandler
A helper class for redirecting to a view represented by a
Location
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
openView
(com.vaadin.flow.router.Location location) void
redirect()
Performs redirect to the previously scheduled location.void
schedule
(com.vaadin.flow.router.Location redirectLocation) Schedules a redirect to the given location.boolean
Whether the redirect is scheduled.
-
Field Details
-
ui
-
views
-
redirectLocation
protected com.vaadin.flow.router.Location redirectLocation
-
-
Constructor Details
-
RedirectHandler
-
-
Method Details
-
schedule
public void schedule(com.vaadin.flow.router.Location redirectLocation) Schedules a redirect to the given location.- Parameters:
redirectLocation
- a location to redirect to
-
scheduled
public boolean scheduled()Whether the redirect is scheduled.- Returns:
true
if the redirect is scheduled,false
otherwise.
-
redirect
public void redirect()Performs redirect to the previously scheduled location. -
openView
protected void openView(com.vaadin.flow.router.Location location)
-