Class OrganizationController
java.lang.Object
ui.controller.OrganizationController
- All Implemented Interfaces:
NavigationAware
Controller for the organizations page.
Displays a paginated list of approved organizations with search functionality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetOnDonate(Consumer<Organization> onDonate) Sets the callback to invoke when the user clicks Donate on an organization card.voidsetOnNavigate(Consumer<Page> onNavigate) Sets the navigation callback.voidsetOnShowDetail(Consumer<Organization> onShowDetail) Sets the callback to invoke when the user clicks on an organization card.
-
Constructor Details
-
OrganizationController
public OrganizationController()
-
-
Method Details
-
setOnDonate
Sets the callback to invoke when the user clicks Donate on an organization card.- Parameters:
onDonate- the callback with the selected organization
-
setOnShowDetail
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()