From 4559ad50368c99bc4615254d2e07cf3fb433788e Mon Sep 17 00:00:00 2001 From: Johannes Kantz <67144859+JohannesKantz@users.noreply.github.com> Date: Tue, 31 Jan 2023 04:30:25 +0100 Subject: [PATCH] add: workerMenu --- .../WorkerMenuController.java | 6 +- .../workerMenu.fxml | 111 ++++++++++++++++++ 2 files changed, 113 insertions(+), 4 deletions(-) create mode 100644 src/main/resources/com/bib/essensbestellungsverwaltung/workerMenu.fxml diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java b/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java index 42d7bcb..5d5ddcd 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java @@ -4,6 +4,7 @@ import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.control.Button; +import javafx.scene.input.ContextMenuEvent; import javafx.scene.input.MouseEvent; import javafx.scene.layout.BorderPane; @@ -40,7 +41,6 @@ public class WorkerMenuController { @FXML public void onWochenplanClick(MouseEvent mouseEvent) { - changePage("createFoodplan-view.fxml"); setButtonActive(wochenplanButton); } @@ -60,7 +60,6 @@ public class WorkerMenuController { @FXML public void onMahlzeitClick(MouseEvent mouseEvent) { - changePage("createFood-view.fxml"); setButtonActive(mahlzeitButton); } @@ -70,8 +69,7 @@ public class WorkerMenuController { } @FXML - public void onAusloggenClick(MouseEvent mouseEvent) throws IOException { - StartViewApplication.changeScene("parentMenu-view.fxml"); + public void onAusloggenClick(MouseEvent mouseEvent) { } private void changePage(String page) { diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/workerMenu.fxml b/src/main/resources/com/bib/essensbestellungsverwaltung/workerMenu.fxml new file mode 100644 index 0000000..92368ad --- /dev/null +++ b/src/main/resources/com/bib/essensbestellungsverwaltung/workerMenu.fxml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+