Class RedirectHandler

java.lang.Object
io.jmix.tabbedmode.navigation.RedirectHandler

public class RedirectHandler extends Object
A helper class for redirecting to a view represented by a Location.
  • Field Details

    • ui

      protected final JmixUI ui
    • views

      protected final Views views
    • redirectLocation

      protected com.vaadin.flow.router.Location redirectLocation
  • Constructor Details

    • RedirectHandler

      public RedirectHandler(JmixUI ui, Views views)
  • 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)