Class Router

java.lang.Object
pretty.Router

public class Router extends Object
Manage navigation between pages
  • Method Details

    • getInstance

      public static Router getInstance()
      Get the singleton instance of the router
      Returns:
      router instance
    • start

      public void start(Page page)
      Start the router with a page
      Parameters:
      page - - page to start with
    • back

      public void back()
      Navigate back to the previous page
    • replace

      public void replace(Page route)
      Replace the current page with a new page
      Parameters:
      route - - page to replace with