-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AdrianBalunan
committed
Mar 13, 2026
1 parent
dcded4b
commit 27a25f6
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
...plication/src/main/java/ntnu/systemutvikling/team6/controller/DonationPageController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| package ntnu.systemutvikling.team6.controller; | ||
|
|
||
| import javafx.event.ActionEvent; | ||
| import javafx.fxml.FXML; | ||
| import javafx.fxml.FXMLLoader; | ||
| import javafx.scene.Node; | ||
| import javafx.scene.Parent; | ||
| import javafx.scene.Scene; | ||
| import javafx.scene.layout.FlowPane; | ||
| import javafx.stage.Stage; | ||
| import ntnu.systemutvikling.team6.HmHApplication; | ||
| import ntnu.systemutvikling.team6.models.Charity; | ||
|
|
||
| import javax.swing.text.html.ImageView; | ||
| import java.io.IOException; | ||
|
|
||
| public class DonationPageController { | ||
| @FXML | ||
| private FlowPane charityPage; | ||
|
|
||
| @FXML | ||
| private ImageView logoImage; | ||
|
|
||
| @FXML | ||
| public void initialize() { | ||
| } | ||
|
|
||
| @FXML | ||
| public void setCharity(Charity charity) { | ||
|
|
||
| } | ||
|
|
||
| public void switchToFrontPage(ActionEvent event) { | ||
| try { | ||
| FXMLLoader fxmlLoader = | ||
| new FXMLLoader(HmHApplication.class.getResource("/fxml/frontPage.fxml")); | ||
| Parent root = fxmlLoader.load(); | ||
|
|
||
| Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow(); | ||
| Scene scene = new Scene(root); | ||
| stage.setScene(scene); | ||
| stage.setFullScreen(true); | ||
| stage.show(); | ||
| } catch (IOException e) { | ||
| throw new RuntimeException(e); | ||
| } | ||
| } | ||
| } |