Class DonationFlowController
java.lang.Object
ui.controller.donation.DonationFlowController
Manages the multi-step donation flow.
Handles navigation between donation steps and hides the navbar during the flow.
-
Constructor Summary
ConstructorsConstructorDescriptionDonationFlowController(javafx.scene.layout.BorderPane mainPane, NavbarController navbarController) Creates a new DonationFlowController. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetOnNavigate(Consumer<Page> onNavigate) Sets the callback for navigating to a page after the donation flow ends.voidstart(Organization org) Starts the donation flow for the given organization.
-
Constructor Details
-
Method Details
-
start
Starts the donation flow for the given organization. Navigates to the amount step if signed in, otherwise to the not logged in step.- Parameters:
org- the organization to donate to- Throws:
IOException- if an FXML file cannot be loaded
-