Class OrganizationController

java.lang.Object
ui.controller.OrganizationController
All Implemented Interfaces:
NavigationAware

public class OrganizationController extends Object implements NavigationAware
Controller for the organizations page. Displays a paginated list of approved organizations with search functionality.
  • Constructor Details

    • OrganizationController

      public OrganizationController()
  • Method Details

    • setOnNavigate

      public void setOnNavigate(Consumer<Page> onNavigate)
      Sets the navigation callback.
      Specified by:
      setOnNavigate in interface NavigationAware
      Parameters:
      onNavigate - the callback for navigating to a page
    • setOnDonate

      public void setOnDonate(Consumer<Organization> onDonate)
      Sets the callback to invoke when the user clicks Donate on an organization card.
      Parameters:
      onDonate - the callback with the selected organization
    • setOnShowDetail

      public void setOnShowDetail(Consumer<Organization> onShowDetail)
      Sets the callback to invoke when the user clicks on an organization card.
      Parameters:
      onShowDetail - the callback with the selected organization
    • initialize

      public void initialize()