Interface NavigationAware

All Known Implementing Classes:
DonationConfirmationController, DonationNotLoggedInController, HomeController, MyProfileController, OrganizationController, RegisterController, SignInController

public interface NavigationAware
Interface for controllers that need to navigate between pages. Controllers that implement this interface can switch to a different page by calling the navigation function they receive.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sets the navigation function that the controller can use to switch pages.
  • Method Details

    • setOnNavigate

      void setOnNavigate(Consumer<Page> onNavigate)
      Sets the navigation function that the controller can use to switch pages.
      Parameters:
      onNavigate - a function that takes a Page and navigates to it