Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40cc2b002a | ||
|
|
e87bae35bc | ||
|
|
0b02c1c661 | ||
|
|
b15b94e579 | ||
|
|
0d36d7718e | ||
|
|
9b6d60a571 | ||
|
|
f567320ec3 | ||
|
|
324ce53bd4 | ||
|
|
f71aba3505 | ||
|
|
5ee0288736 | ||
|
|
72c2e9da16 | ||
|
|
8927755462 | ||
|
|
636ac5ed3a | ||
|
|
1c85261c7b | ||
|
|
c57e65fadb | ||
|
|
c890819be7 | ||
|
|
c981fbca19 | ||
|
|
2b5839f0ea | ||
|
|
1a4d45aed4 |
No files matched your search
Generated
+7
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding">
|
||||||
|
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||||
|
<file url="file://$PROJECT_DIR$/src/main/resources" charset="UTF-8" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+12
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
|
<component name="MavenProjectsManager">
|
||||||
|
<option name="originalFiles">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/pom.xml" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="openjdk-19" project-jdk-type="JavaSDK" />
|
||||||
|
</project>
|
||||||
+425
@@ -0,0 +1,425 @@
|
|||||||
|
Index: src/main/java/com/bib/essensbestellungsverwaltung/StartPageController.java
|
||||||
|
===================================================================
|
||||||
|
diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/StartPageController.java b/src/main/java/com/bib/essensbestellungsverwaltung/StartPageController.java
|
||||||
|
deleted file mode 100644
|
||||||
|
--- a/src/main/java/com/bib/essensbestellungsverwaltung/StartPageController.java (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
+++ /dev/null (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
@@ -1,4 +0,0 @@
|
||||||
|
-package com.bib.essensbestellungsverwaltung;
|
||||||
|
-
|
||||||
|
-public class StartPageController {
|
||||||
|
-}
|
||||||
|
Index: src/main/java/com/bib/essensbestellungsverwaltung/SceneController.java
|
||||||
|
===================================================================
|
||||||
|
diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/SceneController.java b/src/main/java/com/bib/essensbestellungsverwaltung/SceneController.java
|
||||||
|
deleted file mode 100644
|
||||||
|
--- a/src/main/java/com/bib/essensbestellungsverwaltung/SceneController.java (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
+++ /dev/null (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
@@ -1,12 +0,0 @@
|
||||||
|
-package com.bib.essensbestellungsverwaltung;
|
||||||
|
-
|
||||||
|
-import javafx.fxml.FXMLLoader;
|
||||||
|
-import javafx.scene.Parent;
|
||||||
|
-import javafx.scene.Scene;
|
||||||
|
-
|
||||||
|
-import java.io.IOException;
|
||||||
|
-import java.util.Objects;
|
||||||
|
-
|
||||||
|
-public class SceneController {
|
||||||
|
-
|
||||||
|
-}
|
||||||
|
Index: src/main/java/com/bib/essensbestellungsverwaltung/HelloController.java
|
||||||
|
===================================================================
|
||||||
|
diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/HelloController.java b/src/main/java/com/bib/essensbestellungsverwaltung/HelloController.java
|
||||||
|
deleted file mode 100644
|
||||||
|
--- a/src/main/java/com/bib/essensbestellungsverwaltung/HelloController.java (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
+++ /dev/null (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
@@ -1,34 +0,0 @@
|
||||||
|
-package com.bib.essensbestellungsverwaltung;
|
||||||
|
-
|
||||||
|
-import javafx.fxml.FXML;
|
||||||
|
-import javafx.scene.control.Alert;
|
||||||
|
-import javafx.scene.control.Label;
|
||||||
|
-import javafx.scene.control.TextField;
|
||||||
|
-
|
||||||
|
-public class HelloController {
|
||||||
|
- /**
|
||||||
|
- * @autor: Reshad Meher
|
||||||
|
- * Username, Passwort , login
|
||||||
|
- */
|
||||||
|
-
|
||||||
|
- @FXML
|
||||||
|
- private TextField unsernameEingabe;
|
||||||
|
- @FXML
|
||||||
|
- private TextField passwortEingabe;
|
||||||
|
- @FXML
|
||||||
|
- private Label lblAusgabe;
|
||||||
|
- @FXML
|
||||||
|
- protected void onLoginButtonClick() {
|
||||||
|
- String benutzerEingabe = unsernameEingabe.getText();
|
||||||
|
- String kennwortEingabe = passwortEingabe.getText();
|
||||||
|
- if(benutzerEingabe.contains("Reshad") && kennwortEingabe.contains("test123")){
|
||||||
|
- lblAusgabe.setText("Herzlich Willkommen, " + benutzerEingabe + "!");
|
||||||
|
- }else {
|
||||||
|
- Alert alert = new Alert(Alert.AlertType.ERROR,
|
||||||
|
- "Die Benutzername oder Passwort ist falsch");
|
||||||
|
- alert.showAndWait();
|
||||||
|
- }
|
||||||
|
- unsernameEingabe.setText("");
|
||||||
|
- passwortEingabe.setText("");
|
||||||
|
- }
|
||||||
|
-}
|
||||||
|
\ No newline at end of file
|
||||||
|
Index: src/main/resources/com/bib/essensbestellungsverwaltung/signUp-view.fxml
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
|
||||||
|
<+><?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<?import javafx.geometry.Insets?>\r\n<?import javafx.scene.control.Button?>\r\n<?import javafx.scene.control.PasswordField?>\r\n<?import javafx.scene.control.TextField?>\r\n<?import javafx.scene.effect.Blend?>\r\n<?import javafx.scene.layout.AnchorPane?>\r\n<?import javafx.scene.layout.HBox?>\r\n<?import javafx.scene.layout.VBox?>\r\n<?import javafx.scene.shape.Circle?>\r\n<?import javafx.scene.text.Font?>\r\n<?import javafx.scene.text.Text?>\r\n\r\n<AnchorPane maxHeight=\"-400\" maxWidth=\"-600\" minHeight=\"-400\" minWidth=\"-600\" prefHeight=\"400.0\" prefWidth=\"600.0\" xmlns=\"http://javafx.com/javafx/19\" xmlns:fx=\"http://javafx.com/fxml/1\" fx:controller=\"com.bib.essensbestellungsverwaltung.SingUpController\">\r\n <children>\r\n <VBox alignment=\"CENTER\" prefHeight=\"400.0\" prefWidth=\"265.0\" style=\"-fx-background-color: lightblue;\">\r\n <children>\r\n <Text fill=\"WHITE\" strokeType=\"OUTSIDE\" strokeWidth=\"0.0\" text=\"Essensbestellung\">\r\n <font>\r\n <Font name=\"Yu Gothic Light\" size=\"26.0\" />\r\n </font>\r\n </Text>\r\n </children>\r\n <padding>\r\n <Insets bottom=\"150.0\" />\r\n </padding>\r\n </VBox>\r\n <Circle fill=\"#67b5ff2e\" layoutX=\"-23.0\" layoutY=\"368.0\" radius=\"100.0\" stroke=\"BLACK\" strokeType=\"INSIDE\" strokeWidth=\"0.0\" />\r\n <Circle fill=\"#69b6ffb0\" layoutX=\"235.0\" layoutY=\"310.0\" radius=\"158.0\" stroke=\"BLACK\" strokeType=\"INSIDE\" strokeWidth=\"0.0\" />\r\n <Circle fill=\"#93c4f23d\" layoutY=\"258.0\" radius=\"106.0\" stroke=\"BLACK\" strokeType=\"INSIDE\" strokeWidth=\"0.0\" />\r\n <VBox alignment=\"CENTER\" layoutX=\"263.0\" prefHeight=\"400.0\" prefWidth=\"338.0\" style=\"-fx-background-color: white;\">\r\n <children>\r\n <TextField promptText=\"Email\" style=\"-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;\" fx:id=\"tfEmail\">\r\n <effect>\r\n <Blend />\r\n </effect>\r\n <font>\r\n <Font name=\"Microsoft Tai Le Bold\" size=\"12.0\" />\r\n </font>\r\n <VBox.margin>\r\n <Insets bottom=\"10.0\" left=\"10.0\" right=\"10.0\" top=\"10.0\" />\r\n </VBox.margin>\r\n </TextField>\r\n <TextField promptText=\"Email bestätigen\" style=\"-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;\" fx:id=\"tfBestätigungEmail\">\r\n <effect>\r\n <Blend />\r\n </effect>\r\n <font>\r\n <Font name=\"Microsoft Tai Le Bold\" size=\"12.0\" />\r\n </font>\r\n <VBox.margin>\r\n <Insets bottom=\"10.0\" left=\"10.0\" right=\"10.0\" top=\"10.0\" />\r\n </VBox.margin>\r\n </TextField>\r\n <PasswordField promptText=\"Passwort\" style=\"-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;\" fx:id=\"pfPasswort\">\r\n <font>\r\n <Font name=\"Microsoft Tai Le Bold\" size=\"12.0\" />\r\n </font>\r\n <opaqueInsets>\r\n <Insets />\r\n </opaqueInsets>\r\n <effect>\r\n <Blend />\r\n </effect>\r\n <VBox.margin>\r\n <Insets bottom=\"10.0\" left=\"10.0\" right=\"10.0\" top=\"10.0\" />\r\n </VBox.margin>\r\n </PasswordField>\r\n <PasswordField promptText=\"Passwort bestätigen\" style=\"-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;\" fx:id=\"pfBestätigungPassowrt\">\r\n <font>\r\n <Font name=\"Microsoft Tai Le Bold\" size=\"12.0\" />\r\n </font>\r\n <opaqueInsets>\r\n <Insets />\r\n </opaqueInsets>\r\n <effect>\r\n <Blend />\r\n </effect>\r\n <VBox.margin>\r\n <Insets bottom=\"10.0\" left=\"10.0\" right=\"10.0\" top=\"10.0\" />\r\n </VBox.margin>\r\n </PasswordField>\r\n <HBox alignment=\"CENTER\" prefHeight=\"30.0\" prefWidth=\"238.0\">\r\n <children>\r\n <Button mnemonicParsing=\"false\" prefHeight=\"25.0\" prefWidth=\"106.0\" style=\"-fx-background-radius: 25; -fx-background-color: lightblue;\" text=\"Konto erstellen\" textFill=\"WHITE\" onAction=\"#onKontoErstellenBtClick\">\r\n <font>\r\n <Font name=\"Microsoft Tai Le Bold\" size=\"12.0\" />\r\n
Line truncated
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/signUp-view.fxml b/src/main/resources/com/bib/essensbestellungsverwaltung/signUp-view.fxml
|
||||||
|
--- a/src/main/resources/com/bib/essensbestellungsverwaltung/signUp-view.fxml (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
+++ b/src/main/resources/com/bib/essensbestellungsverwaltung/signUp-view.fxml (date 1675084399131)
|
||||||
|
@@ -29,72 +29,112 @@
|
||||||
|
<Circle fill="#67b5ff2e" layoutX="-23.0" layoutY="368.0" radius="100.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
||||||
|
<Circle fill="#69b6ffb0" layoutX="235.0" layoutY="310.0" radius="158.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
||||||
|
<Circle fill="#93c4f23d" layoutY="258.0" radius="106.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
||||||
|
- <VBox alignment="CENTER" layoutX="263.0" prefHeight="400.0" prefWidth="338.0" style="-fx-background-color: white;">
|
||||||
|
+ <VBox layoutX="262.0" prefHeight="400.0" prefWidth="364.0" style="-fx-background-color: white;">
|
||||||
|
<children>
|
||||||
|
- <TextField promptText="Email" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;" fx:id="tfEmail">
|
||||||
|
- <effect>
|
||||||
|
- <Blend />
|
||||||
|
- </effect>
|
||||||
|
- <font>
|
||||||
|
- <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
- </font>
|
||||||
|
- <VBox.margin>
|
||||||
|
- <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
- </VBox.margin>
|
||||||
|
- </TextField>
|
||||||
|
- <TextField promptText="Email bestätigen" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;" fx:id="tfBestätigungEmail">
|
||||||
|
- <effect>
|
||||||
|
- <Blend />
|
||||||
|
- </effect>
|
||||||
|
- <font>
|
||||||
|
- <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
- </font>
|
||||||
|
- <VBox.margin>
|
||||||
|
- <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
- </VBox.margin>
|
||||||
|
- </TextField>
|
||||||
|
- <PasswordField promptText="Passwort" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;" fx:id="pfPasswort">
|
||||||
|
- <font>
|
||||||
|
- <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
- </font>
|
||||||
|
- <opaqueInsets>
|
||||||
|
- <Insets />
|
||||||
|
- </opaqueInsets>
|
||||||
|
- <effect>
|
||||||
|
- <Blend />
|
||||||
|
- </effect>
|
||||||
|
- <VBox.margin>
|
||||||
|
- <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
- </VBox.margin>
|
||||||
|
- </PasswordField>
|
||||||
|
- <PasswordField promptText="Passwort bestätigen" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;" fx:id="pfBestätigungPassowrt">
|
||||||
|
- <font>
|
||||||
|
- <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
- </font>
|
||||||
|
- <opaqueInsets>
|
||||||
|
- <Insets />
|
||||||
|
- </opaqueInsets>
|
||||||
|
- <effect>
|
||||||
|
- <Blend />
|
||||||
|
- </effect>
|
||||||
|
- <VBox.margin>
|
||||||
|
- <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
- </VBox.margin>
|
||||||
|
- </PasswordField>
|
||||||
|
+ <TextField fx:id="tfEmail" alignment="TOP_LEFT" prefHeight="26.0" prefWidth="282.0" promptText="Name" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
+ <effect>
|
||||||
|
+ <Blend />
|
||||||
|
+ </effect>
|
||||||
|
+ <font>
|
||||||
|
+ <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
+ </font>
|
||||||
|
+ <VBox.margin>
|
||||||
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
+ </VBox.margin>
|
||||||
|
+ </TextField>
|
||||||
|
+ <TextField fx:id="tfBestätigungEmail" promptText="Vorname" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
+ <effect>
|
||||||
|
+ <Blend />
|
||||||
|
+ </effect>
|
||||||
|
+ <font>
|
||||||
|
+ <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
+ </font>
|
||||||
|
+ <VBox.margin>
|
||||||
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
+ </VBox.margin>
|
||||||
|
+ </TextField>
|
||||||
|
+ <PasswordField fx:id="pfPasswort" accessibleRole="TEXT_FIELD" promptText="Email" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
+ <font>
|
||||||
|
+ <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
+ </font>
|
||||||
|
+ <opaqueInsets>
|
||||||
|
+ <Insets />
|
||||||
|
+ </opaqueInsets>
|
||||||
|
+ <effect>
|
||||||
|
+ <Blend />
|
||||||
|
+ </effect>
|
||||||
|
+ <VBox.margin>
|
||||||
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
+ </VBox.margin>
|
||||||
|
+ </PasswordField>
|
||||||
|
+ <PasswordField fx:id="pfBestätigungPassowrt" promptText="Passwort" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
+ <font>
|
||||||
|
+ <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
+ </font>
|
||||||
|
+ <opaqueInsets>
|
||||||
|
+ <Insets />
|
||||||
|
+ </opaqueInsets>
|
||||||
|
+ <effect>
|
||||||
|
+ <Blend />
|
||||||
|
+ </effect>
|
||||||
|
+ <VBox.margin>
|
||||||
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
+ </VBox.margin>
|
||||||
|
+ </PasswordField>
|
||||||
|
+ <HBox prefHeight="100.0" prefWidth="200.0">
|
||||||
|
+ <children>
|
||||||
|
+ <TextField prefHeight="35.0" prefWidth="92.0" promptText="PLZ" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
+ <HBox.margin>
|
||||||
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
+ </HBox.margin>
|
||||||
|
+ <font>
|
||||||
|
+ <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
+ </font>
|
||||||
|
+ </TextField>
|
||||||
|
+ <TextField prefHeight="35.0" prefWidth="182.0" promptText="Stadt" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
+ <HBox.margin>
|
||||||
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
+ </HBox.margin>
|
||||||
|
+ <font>
|
||||||
|
+ <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
+ </font>
|
||||||
|
+ </TextField>
|
||||||
|
+ </children>
|
||||||
|
+ </HBox>
|
||||||
|
+ <HBox prefHeight="100.0" prefWidth="200.0">
|
||||||
|
+ <children>
|
||||||
|
+ <TextField prefHeight="27.0" prefWidth="134.0" promptText="Straße" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
+ <HBox.margin>
|
||||||
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
+ </HBox.margin>
|
||||||
|
+ <font>
|
||||||
|
+ <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
+ </font>
|
||||||
|
+ </TextField>
|
||||||
|
+ <TextField prefHeight="27.0" prefWidth="99.0" promptText="Hausnummer" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
+ <HBox.margin>
|
||||||
|
+ <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
+ </HBox.margin>
|
||||||
|
+ <font>
|
||||||
|
+ <Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
+ </font>
|
||||||
|
+ </TextField>
|
||||||
|
+ </children>
|
||||||
|
+ </HBox>
|
||||||
|
<HBox alignment="CENTER" prefHeight="30.0" prefWidth="238.0">
|
||||||
|
<children>
|
||||||
|
- <Button mnemonicParsing="false" prefHeight="25.0" prefWidth="106.0" style="-fx-background-radius: 25; -fx-background-color: lightblue;" text="Konto erstellen" textFill="WHITE" onAction="#onKontoErstellenBtClick">
|
||||||
|
+ <Button mnemonicParsing="false" onAction="#onKontoErstellenBtClick" prefHeight="25.0" prefWidth="106.0" style="-fx-background-radius: 25; -fx-background-color: lightblue;" text="Konto erstellen" textFill="WHITE">
|
||||||
|
<font>
|
||||||
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
</font></Button>
|
||||||
|
- <Button id="btSignUp" mnemonicParsing="false" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Anmelden" textFill="#7c7b7b" underline="true" onAction="#onAnmeldenBtClick"/>
|
||||||
|
+ <Button id="btSignUp" mnemonicParsing="false" onAction="#onAnmeldenBtClick" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Anmelden" textFill="#7c7b7b" underline="true" />
|
||||||
|
</children>
|
||||||
|
- <opaqueInsets>
|
||||||
|
- <Insets top="15.0" />
|
||||||
|
- </opaqueInsets>
|
||||||
|
- <VBox.margin>
|
||||||
|
- <Insets top="15.0" />
|
||||||
|
- </VBox.margin>
|
||||||
|
+ <opaqueInsets>
|
||||||
|
+ <Insets top="15.0" />
|
||||||
|
+ </opaqueInsets>
|
||||||
|
+ <VBox.margin>
|
||||||
|
+ <Insets top="15.0" />
|
||||||
|
+ </VBox.margin>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
Index: src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
|
||||||
|
<+>/*Richard Reiswich*/\r\npackage com.bib.essensbestellungsverwaltung;\r\n\r\nimport javafx.fxml.FXML;\r\nimport javafx.fxml.FXMLLoader;\r\nimport javafx.scene.Scene;\r\nimport javafx.scene.control.Alert;\r\nimport javafx.scene.control.PasswordField;\r\nimport javafx.scene.control.TextField;\r\nimport javafx.stage.Stage;\r\n\r\nimport java.io.IOException;\r\nimport java.util.HashMap;\r\n\r\npublic class LoginController {\r\n @FXML\r\n private TextField tfEmail;\r\n\r\n @FXML\r\n private PasswordField pfPassword;\r\n\r\n HashMap<String,String> benutzerMap = new HashMap<String,String>();\r\n @FXML\r\n protected void onBtLoginClick() throws IOException {\r\n benutzerMap.put(\"Reshad\",\"1234\");\r\n String email = tfEmail.getText();\r\n String password = pfPassword.getText();\r\n if(benutzerMap.containsKey(email) && benutzerMap.containsValue(password)){\r\n FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource(\"menue-view.fxml\"));\r\n Scene scene = new Scene(fxmlLoader.load(), 950,480);\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Essen Bestellung im Kindergarten\");\r\n stage.setScene(scene);\r\n stage.show();\r\n }else {\r\n Alert alert = new Alert(Alert.AlertType.ERROR,\"Email oder Passwort ist falsch\");\r\n alert.showAndWait();\r\n }\r\n\r\n tfEmail.setText(\"\");\r\n pfPassword.setText(\"\");\r\n }\r\n @FXML\r\n protected void changeToSignUp() throws IOException {\r\n FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource(\"signUp-view.fxml\"));\r\n Scene scene = new Scene(fxmlLoader.load(), 950,480);\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Essen Bestellung im Kindergarten\");\r\n stage.setScene(scene);\r\n stage.show();\r\n\r\n }\r\n}\r\n
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java b/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java
|
||||||
|
--- a/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
+++ b/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java (date 1675086360119)
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-/*Richard Reiswich*/
|
||||||
|
+/*Reshad Meher*/
|
||||||
|
package com.bib.essensbestellungsverwaltung;
|
||||||
|
|
||||||
|
import javafx.fxml.FXML;
|
||||||
|
@@ -19,19 +19,17 @@
|
||||||
|
@FXML
|
||||||
|
private PasswordField pfPassword;
|
||||||
|
|
||||||
|
+ AccountMgr accountMgr = new AccountMgr();
|
||||||
|
HashMap<String,String> benutzerMap = new HashMap<String,String>();
|
||||||
|
@FXML
|
||||||
|
protected void onBtLoginClick() throws IOException {
|
||||||
|
- benutzerMap.put("Reshad","1234");
|
||||||
|
String email = tfEmail.getText();
|
||||||
|
String password = pfPassword.getText();
|
||||||
|
- if(benutzerMap.containsKey(email) && benutzerMap.containsValue(password)){
|
||||||
|
+ long loginPrüfen = AccountMgr.login(email,password);
|
||||||
|
+ if(loginPrüfen > 0){
|
||||||
|
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("menue-view.fxml"));
|
||||||
|
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
||||||
|
- Stage stage = new Stage();
|
||||||
|
- stage.setTitle("Essen Bestellung im Kindergarten");
|
||||||
|
- stage.setScene(scene);
|
||||||
|
- stage.show();
|
||||||
|
+ StartViewApplication.primary.setScene(scene);
|
||||||
|
}else {
|
||||||
|
Alert alert = new Alert(Alert.AlertType.ERROR,"Email oder Passwort ist falsch");
|
||||||
|
alert.showAndWait();
|
||||||
|
@@ -41,13 +39,10 @@
|
||||||
|
pfPassword.setText("");
|
||||||
|
}
|
||||||
|
@FXML
|
||||||
|
- protected void changeToSignUp() throws IOException {
|
||||||
|
+ protected void onBtSingnupClick() throws IOException {
|
||||||
|
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("signUp-view.fxml"));
|
||||||
|
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
||||||
|
- Stage stage = new Stage();
|
||||||
|
- stage.setTitle("Essen Bestellung im Kindergarten");
|
||||||
|
- stage.setScene(scene);
|
||||||
|
- stage.show();
|
||||||
|
+ StartViewApplication.primary.setScene(scene);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Index: src/main/resources/com/bib/essensbestellungsverwaltung/login-view.fxml
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
|
||||||
|
<+><?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n\r\n<?import javafx.geometry.Insets?>\r\n<?import javafx.scene.control.Button?>\r\n<?import javafx.scene.control.PasswordField?>\r\n<?import javafx.scene.control.TextField?>\r\n<?import javafx.scene.effect.Blend?>\r\n<?import javafx.scene.layout.AnchorPane?>\r\n<?import javafx.scene.layout.HBox?>\r\n<?import javafx.scene.layout.VBox?>\r\n<?import javafx.scene.shape.Circle?>\r\n<?import javafx.scene.text.Font?>\r\n<?import javafx.scene.text.Text?>\r\n\r\n<AnchorPane maxHeight=\"-Infinity\" maxWidth=\"-Infinity\" minHeight=\"-Infinity\" minWidth=\"-Infinity\" prefHeight=\"400.0\" prefWidth=\"600.0\" xmlns=\"http://javafx.com/javafx/19\" xmlns:fx=\"http://javafx.com/fxml/1\" fx:controller=\"com.bib.essensbestellungsverwaltung.LoginController\">\r\n <children>\r\n <VBox alignment=\"CENTER\" prefHeight=\"400.0\" prefWidth=\"265.0\" style=\"-fx-background-color: lightblue;\">\r\n <children>\r\n <Text fill=\"WHITE\" strokeType=\"OUTSIDE\" strokeWidth=\"0.0\" text=\"Essensbestellung\">\r\n <font>\r\n <Font name=\"Yu Gothic Light\" size=\"26.0\" />\r\n </font>\r\n </Text>\r\n </children>\r\n <padding>\r\n <Insets bottom=\"150.0\" />\r\n </padding>\r\n </VBox>\r\n <Circle fill=\"#67b5ff2e\" layoutX=\"-23.0\" layoutY=\"368.0\" radius=\"100.0\" stroke=\"BLACK\" strokeType=\"INSIDE\" strokeWidth=\"0.0\" />\r\n <Circle fill=\"#69b6ffb0\" layoutX=\"235.0\" layoutY=\"310.0\" radius=\"158.0\" stroke=\"BLACK\" strokeType=\"INSIDE\" strokeWidth=\"0.0\" />\r\n <Circle fill=\"#93c4f23d\" layoutY=\"258.0\" radius=\"106.0\" stroke=\"BLACK\" strokeType=\"INSIDE\" strokeWidth=\"0.0\" />\r\n <VBox alignment=\"CENTER\" layoutX=\"263.0\" prefHeight=\"400.0\" prefWidth=\"338.0\" style=\"-fx-background-color: white;\">\r\n <children>\r\n <TextField promptText=\"Email\" style=\"-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;\" fx:id=\"tfEmail\">\r\n <VBox.margin>\r\n <Insets bottom=\"15.0\" left=\"25.0\" right=\"25.0\" top=\"25.0\" />\r\n </VBox.margin>\r\n <effect>\r\n <Blend />\r\n </effect>\r\n <font>\r\n <Font name=\"Microsoft Tai Le\" size=\"12.0\" />\r\n </font>\r\n </TextField>\r\n <PasswordField promptText=\"Passwort\" style=\"-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;\" fx:id=\"pfPassword\">\r\n <VBox.margin>\r\n <Insets bottom=\"25.0\" left=\"25.0\" right=\"25.0\" top=\"15.0\" />\r\n </VBox.margin>\r\n <font>\r\n <Font name=\"Microsoft Tai Le Bold\" size=\"12.0\" />\r\n </font>\r\n </PasswordField>\r\n <HBox alignment=\"CENTER\" prefHeight=\"30.0\" prefWidth=\"238.0\">\r\n <children>\r\n <Button mnemonicParsing=\"false\" prefHeight=\"25.0\" prefWidth=\"106.0\" style=\"-fx-background-radius: 25; -fx-background-color: lightblue;\" text=\"Login\" textFill=\"WHITE\" onAction=\"#onBtLoginClick\">\r\n <font>\r\n <Font name=\"Microsoft Tai Le Bold\" size=\"12.0\" />\r\n </font></Button>\r\n <Button id=\"btSignUp\" mnemonicParsing=\"false\" prefHeight=\"25.0\" prefWidth=\"101.0\" style=\"-fx-background-color: tranparent;\" text=\"Sign up\" textFill=\"#7c7b7b\" underline=\"true\" onAction=\"#changeToSignUp\" />\r\n </children>\r\n </HBox>\r\n </children>\r\n <padding>\r\n <Insets bottom=\"65.0\" left=\"45.0\" right=\"45.0\" top=\"45.0\" />\r\n </padding>\r\n </VBox>\r\n <Circle fill=\"#1469b895\" layoutX=\"133.0\" layoutY=\"368.0\" radius=\"106.0\" stroke=\"BLACK\" strokeType=\"INSIDE\" strokeWidth=\"0.0\" />\r\n <Circle fill=\"#0088ff82\" layoutX=\"77.0\" layoutY=\"276.0\" radius=\"53.0\" stroke=\"BLACK\" strokeType=\"INSIDE\" strokeWidth=\"0.0\" />\r\n </children>\r\n</AnchorPane>\r\n
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/login-view.fxml b/src/main/resources/com/bib/essensbestellungsverwaltung/login-view.fxml
|
||||||
|
--- a/src/main/resources/com/bib/essensbestellungsverwaltung/login-view.fxml (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
+++ b/src/main/resources/com/bib/essensbestellungsverwaltung/login-view.fxml (date 1675084574525)
|
||||||
|
@@ -56,7 +56,7 @@
|
||||||
|
<font>
|
||||||
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
</font></Button>
|
||||||
|
- <Button id="btSignUp" mnemonicParsing="false" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Sign up" textFill="#7c7b7b" underline="true" onAction="#changeToSignUp" />
|
||||||
|
+ <Button id="btSignUp" mnemonicParsing="false" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Sign up" textFill="#7c7b7b" underline="true" onAction="#onBtSingnupClick" />
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
Index: src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java b/src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java
|
||||||
|
new file mode 100644
|
||||||
|
--- /dev/null (date 1675085098078)
|
||||||
|
+++ b/src/main/java/com/bib/essensbestellungsverwaltung/SingUpController.java (date 1675085098078)
|
||||||
|
@@ -0,0 +1,62 @@
|
||||||
|
+package com.bib.essensbestellungsverwaltung;
|
||||||
|
+
|
||||||
|
+import javafx.fxml.FXML;
|
||||||
|
+import javafx.fxml.FXMLLoader;
|
||||||
|
+import javafx.scene.Scene;
|
||||||
|
+import javafx.scene.control.Alert;
|
||||||
|
+import javafx.scene.control.PasswordField;
|
||||||
|
+import javafx.scene.control.TextField;
|
||||||
|
+
|
||||||
|
+import java.io.IOException;
|
||||||
|
+import java.util.HashMap;
|
||||||
|
+
|
||||||
|
+public class SingUpController {
|
||||||
|
+ @FXML
|
||||||
|
+ private TextField tfEmail;
|
||||||
|
+ @FXML
|
||||||
|
+ private TextField tfBestätigungEmail;
|
||||||
|
+ @FXML
|
||||||
|
+ private PasswordField pfPasswort;
|
||||||
|
+ @FXML
|
||||||
|
+ private PasswordField pfBestätigungPassowrt;
|
||||||
|
+
|
||||||
|
+ private HashMap<String, String> benutzermap = new HashMap<>();
|
||||||
|
+ @FXML
|
||||||
|
+ private void onKontoErstellenBtClick(){
|
||||||
|
+ String email = tfEmail.getText();
|
||||||
|
+ String bestätigungEmail = tfBestätigungEmail.getText();
|
||||||
|
+ String passwort = pfPasswort.getText();
|
||||||
|
+ String bestätigungPasswort = pfBestätigungPassowrt.getText();
|
||||||
|
+ if(!(email.isEmpty() || bestätigungEmail.isEmpty() || passwort.isEmpty() && bestätigungEmail.isEmpty() || bestätigungPasswort.isEmpty())){
|
||||||
|
+
|
||||||
|
+ Alert alert;
|
||||||
|
+ if(bestätigungEmail.equals(email) && bestätigungPasswort.equals(passwort)){
|
||||||
|
+ alert = new Alert(Alert.AlertType.CONFIRMATION,"okay");
|
||||||
|
+ alert.showAndWait();
|
||||||
|
+ benutzermap.put(email,passwort);
|
||||||
|
+ System.out.println(benutzermap);
|
||||||
|
+ }else {
|
||||||
|
+ alert = new Alert(Alert.AlertType.ERROR,"Die Eingabe passt nicht.");
|
||||||
|
+ alert.showAndWait();
|
||||||
|
+ }
|
||||||
|
+ tfEmail.setText("");
|
||||||
|
+ tfBestätigungEmail.setText("");
|
||||||
|
+ pfPasswort.setText("");
|
||||||
|
+ pfBestätigungPassowrt.setText("");
|
||||||
|
+ }
|
||||||
|
+ else {
|
||||||
|
+ Alert alert = new Alert(Alert.AlertType.ERROR,"Eingabefield sind leer");
|
||||||
|
+ alert.showAndWait();
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+ @FXML
|
||||||
|
+ private void onAnmeldenBtClick() throws IOException {
|
||||||
|
+ FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("login-view.fxml"));
|
||||||
|
+ Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
||||||
|
+ StartViewApplication.primary.setScene(scene);
|
||||||
|
+ }
|
||||||
|
+ public HashMap<String, String> getBenutzermap() {
|
||||||
|
+ return benutzermap;
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
Index: src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java
|
||||||
|
IDEA additional info:
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
|
||||||
|
<+>/**\r\n * @autor: Reshad Meher\r\n * Fenstergrößer\r\n * Fenstertitle\r\n */\r\npackage com.bib.essensbestellungsverwaltung;\r\n\r\nimport javafx.application.Application;\r\nimport javafx.fxml.FXMLLoader;\r\nimport javafx.scene.Scene;\r\nimport javafx.stage.Stage;\r\n\r\nimport java.io.IOException;\r\n\r\npublic class StartViewApplication extends Application {\r\n public static Stage primary;\r\n @Override\r\n public void start(Stage stage) throws IOException {\r\n FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource(\"login-view.fxml\"));\r\n Scene scene = new Scene(fxmlLoader.load(), 950,480);\r\n //stage = primary;\r\n stage.setTitle(\"Essen Bestellung im Kindergarten\");\r\n stage.setScene(scene);\r\n stage.show();\r\n\r\n\r\n }\r\n\r\n public static void main(String[] args) {\r\n Database.init();\r\n Database.createDb();\r\n Database.fillDb();\r\n //Database.printSampleQuery();\r\n //Database.deleteSample();\r\n launch();\r\n }\r\n}
|
||||||
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
||||||
|
<+>UTF-8
|
||||||
|
===================================================================
|
||||||
|
diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java b/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java
|
||||||
|
--- a/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java (revision 2d91259953b2b5b95141325e59a25e080e54a5a1)
|
||||||
|
+++ b/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java (date 1675084231696)
|
||||||
|
@@ -18,12 +18,10 @@
|
||||||
|
public void start(Stage stage) throws IOException {
|
||||||
|
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("login-view.fxml"));
|
||||||
|
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
||||||
|
- //stage = primary;
|
||||||
|
+ primary = stage;
|
||||||
|
stage.setTitle("Essen Bestellung im Kindergarten");
|
||||||
|
stage.setScene(scene);
|
||||||
|
stage.show();
|
||||||
|
-
|
||||||
|
-
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
<changelist name="Uncommitted_changes_before_Update_at_30_01_2023_14_48_[Changes]" date="1675086496793" recycled="true" deleted="true">
|
||||||
|
<option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_Update_at_30_01_2023_14_48_[Changes]/shelved.patch" />
|
||||||
|
<option name="DESCRIPTION" value="Uncommitted changes before Update at 30.01.2023 14:48 [Changes]" />
|
||||||
|
</changelist>
|
||||||
Generated
+124
@@ -0,0 +1,124 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Palette2">
|
||||||
|
<group name="Swing">
|
||||||
|
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Button" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="RadioButton" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="CheckBox" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||||
|
<initial-values>
|
||||||
|
<property name="text" value="Label" />
|
||||||
|
</initial-values>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||||
|
<preferred-size width="150" height="-1" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||||
|
<preferred-size width="150" height="50" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||||
|
<preferred-size width="200" height="200" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||||
|
<preferred-size width="-1" height="20" />
|
||||||
|
</default-constraints>
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||||
|
</item>
|
||||||
|
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||||
|
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||||
|
</item>
|
||||||
|
</group>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+6
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
Generated
+144
@@ -0,0 +1,144 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="AutoImportSettings">
|
||||||
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
|
</component>
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="be8f30d3-089d-4d1c-bba3-da21b0466111" name="Changes" comment="singup mit Datebase verbunden und new Adresse">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/AdminController.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/CreateFoodController.java" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/CreateFoodplanController.java" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/FoodMgr.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/FoodMgr.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/InvoiceController.java" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/LoginController.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/MenueController.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/MenueController.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/ParentMenuController.java" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/StartViewApplication.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/java/com/bib/essensbestellungsverwaltung/WorkerMenuController.java" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/child-view.fxml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/child-view.fxml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/createCoworker-view.fxml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/createFood-view.fxml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/createFood-view.fxml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/createFoodplan-view.fxml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/createFoodplan-view.fxml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/invoice-view.fxml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/invoice-view.fxml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/menue-view.fxml" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/menue-view.fxml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/menue.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/menue.css" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/parentMenu-view.fxml" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/main/resources/com/bib/essensbestellungsverwaltung/workerMenu-view.fxml" beforeDir="false" />
|
||||||
|
</list>
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="FileTemplateManagerImpl">
|
||||||
|
<option name="RECENT_TEMPLATES">
|
||||||
|
<list>
|
||||||
|
<option value="Class" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||||
|
<map>
|
||||||
|
<entry key="$PROJECT_DIR$" value="Richards_Branch" />
|
||||||
|
</map>
|
||||||
|
</option>
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="MarkdownSettingsMigration">
|
||||||
|
<option name="stateVersion" value="1" />
|
||||||
|
</component>
|
||||||
|
<component name="MavenImportPreferences">
|
||||||
|
<option name="generalSettings">
|
||||||
|
<MavenGeneralSettings>
|
||||||
|
<option name="mavenHome" value="Use Maven wrapper" />
|
||||||
|
<option name="useMavenConfig" value="true" />
|
||||||
|
</MavenGeneralSettings>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectId" id="2L2y55tSt0XlzQa7s1gkzyAgxgu" />
|
||||||
|
<component name="ProjectViewState">
|
||||||
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
|
<option name="showLibraryContents" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent">{
|
||||||
|
"keyToString": {
|
||||||
|
"ASKED_ADD_EXTERNAL_FILES": "true",
|
||||||
|
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||||
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
|
"RunOnceActivity.ShowReadmeOnStart": "true"
|
||||||
|
}
|
||||||
|
}</component>
|
||||||
|
<component name="RunManager">
|
||||||
|
<configuration name="SuperMain" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||||
|
<option name="MAIN_CLASS_NAME" value="com.bib.essensbestellungsverwaltung.SuperMain" />
|
||||||
|
<module name="Essensbestellungsverwaltung" />
|
||||||
|
<extension name="coverage">
|
||||||
|
<pattern>
|
||||||
|
<option name="PATTERN" value="com.bib.essensbestellungsverwaltung.*" />
|
||||||
|
<option name="ENABLED" value="true" />
|
||||||
|
</pattern>
|
||||||
|
</extension>
|
||||||
|
<method v="2">
|
||||||
|
<option name="Make" enabled="true" />
|
||||||
|
</method>
|
||||||
|
</configuration>
|
||||||
|
<recent_temporary>
|
||||||
|
<list>
|
||||||
|
<item itemvalue="Application.SuperMain" />
|
||||||
|
<item itemvalue="Application.SuperMain" />
|
||||||
|
</list>
|
||||||
|
</recent_temporary>
|
||||||
|
</component>
|
||||||
|
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="be8f30d3-089d-4d1c-bba3-da21b0466111" name="Changes" comment="" />
|
||||||
|
<created>1675083287293</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1675083287293</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00001" summary="StartViewApplication ist die Startpunkt des Projekt">
|
||||||
|
<created>1675083679870</created>
|
||||||
|
<option name="number" value="00001" />
|
||||||
|
<option name="presentableId" value="LOCAL-00001" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1675083679870</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00002" summary="StartViewApplication ist die Startpunkt des Projekt">
|
||||||
|
<created>1675083693484</created>
|
||||||
|
<option name="number" value="00002" />
|
||||||
|
<option name="presentableId" value="LOCAL-00002" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1675083693484</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00003" summary="singup mit Datebase verbunden und new Adresse">
|
||||||
|
<created>1675241335793</created>
|
||||||
|
<option name="number" value="00003" />
|
||||||
|
<option name="presentableId" value="LOCAL-00003" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1675241335793</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="4" />
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
|
<option name="TAB_STATES">
|
||||||
|
<map>
|
||||||
|
<entry key="MAIN">
|
||||||
|
<value>
|
||||||
|
<State />
|
||||||
|
</value>
|
||||||
|
</entry>
|
||||||
|
</map>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="VcsManagerConfiguration">
|
||||||
|
<MESSAGE value="StartViewApplication ist die Startpunkt des Projekt" />
|
||||||
|
<MESSAGE value="singup mit Datebase verbunden" />
|
||||||
|
<MESSAGE value="singup mit Datebase verbunden und new Adresse" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="singup mit Datebase verbunden und new Adresse" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
BIN
Binary file not shown.
@@ -1,34 +0,0 @@
|
|||||||
package com.bib.essensbestellungsverwaltung;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.scene.control.Alert;
|
|
||||||
import javafx.scene.control.Label;
|
|
||||||
import javafx.scene.control.TextField;
|
|
||||||
|
|
||||||
public class HelloController {
|
|
||||||
/**
|
|
||||||
* @autor: Reshad Meher
|
|
||||||
* Username, Passwort , login
|
|
||||||
*/
|
|
||||||
|
|
||||||
@FXML
|
|
||||||
private TextField unsernameEingabe;
|
|
||||||
@FXML
|
|
||||||
private TextField passwortEingabe;
|
|
||||||
@FXML
|
|
||||||
private Label lblAusgabe;
|
|
||||||
@FXML
|
|
||||||
protected void onLoginButtonClick() {
|
|
||||||
String benutzerEingabe = unsernameEingabe.getText();
|
|
||||||
String kennwortEingabe = passwortEingabe.getText();
|
|
||||||
if(benutzerEingabe.contains("Reshad") && kennwortEingabe.contains("test123")){
|
|
||||||
lblAusgabe.setText("Herzlich Willkommen, " + benutzerEingabe + "!");
|
|
||||||
}else {
|
|
||||||
Alert alert = new Alert(Alert.AlertType.ERROR,
|
|
||||||
"Die Benutzername oder Passwort ist falsch");
|
|
||||||
alert.showAndWait();
|
|
||||||
}
|
|
||||||
unsernameEingabe.setText("");
|
|
||||||
passwortEingabe.setText("");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
/*Richard Reiswich*/
|
/*Reshad Meher*/
|
||||||
package com.bib.essensbestellungsverwaltung;
|
package com.bib.essensbestellungsverwaltung;
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
@@ -7,10 +7,8 @@ import javafx.scene.Scene;
|
|||||||
import javafx.scene.control.Alert;
|
import javafx.scene.control.Alert;
|
||||||
import javafx.scene.control.PasswordField;
|
import javafx.scene.control.PasswordField;
|
||||||
import javafx.scene.control.TextField;
|
import javafx.scene.control.TextField;
|
||||||
import javafx.stage.Stage;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
public class LoginController {
|
public class LoginController {
|
||||||
@FXML
|
@FXML
|
||||||
@@ -18,36 +16,27 @@ public class LoginController {
|
|||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private PasswordField pfPassword;
|
private PasswordField pfPassword;
|
||||||
|
|
||||||
HashMap<String,String> benutzerMap = new HashMap<String,String>();
|
|
||||||
@FXML
|
@FXML
|
||||||
protected void onBtLoginClick() throws IOException {
|
protected void onBtLoginClick() throws IOException {
|
||||||
benutzerMap.put("Reshad","1234");
|
|
||||||
String email = tfEmail.getText();
|
String email = tfEmail.getText();
|
||||||
String password = pfPassword.getText();
|
String password = pfPassword.getText();
|
||||||
if(benutzerMap.containsKey(email) && benutzerMap.containsValue(password)){
|
long loginPruefen = AccountMgr.login(email,password);
|
||||||
|
if(loginPruefen > 0){
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("menue-view.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("menue-view.fxml"));
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
Scene scene = new Scene(fxmlLoader.load(), 950,700);
|
||||||
Stage stage = new Stage();
|
StartViewApplication.primary.setScene(scene);
|
||||||
stage.setTitle("Essen Bestellung im Kindergarten");
|
|
||||||
stage.setScene(scene);
|
|
||||||
stage.show();
|
|
||||||
}else {
|
}else {
|
||||||
Alert alert = new Alert(Alert.AlertType.ERROR,"Email oder Passwort ist falsch");
|
Alert alert = new Alert(Alert.AlertType.ERROR,"Email oder Passwort ist falsch");
|
||||||
alert.showAndWait();
|
alert.showAndWait();
|
||||||
}
|
}
|
||||||
|
|
||||||
tfEmail.setText("");
|
tfEmail.setText("");
|
||||||
pfPassword.setText("");
|
pfPassword.setText("");
|
||||||
}
|
}
|
||||||
@FXML
|
@FXML
|
||||||
protected void changeToSignUp() throws IOException {
|
protected void onBtSingnupClick() throws IOException {
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("signUp-view.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("signUp-view.fxml"));
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
Scene scene = new Scene(fxmlLoader.load(), 950,700);
|
||||||
Stage stage = new Stage();
|
StartViewApplication.primary.setScene(scene);
|
||||||
stage.setTitle("Essen Bestellung im Kindergarten");
|
|
||||||
stage.setScene(scene);
|
|
||||||
stage.show();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package com.bib.essensbestellungsverwaltung;
|
|
||||||
|
|
||||||
import javafx.fxml.FXMLLoader;
|
|
||||||
import javafx.scene.Parent;
|
|
||||||
import javafx.scene.Scene;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
public class SceneController {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
/**
|
||||||
|
* @autor: Reshad Meher
|
||||||
|
*/
|
||||||
|
package com.bib.essensbestellungsverwaltung;
|
||||||
|
|
||||||
|
import javafx.fxml.FXML;
|
||||||
|
import javafx.fxml.FXMLLoader;
|
||||||
|
import javafx.scene.Scene;
|
||||||
|
import javafx.scene.control.Alert;
|
||||||
|
import javafx.scene.control.PasswordField;
|
||||||
|
import javafx.scene.control.TextField;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
public class SingUpController {
|
||||||
|
@FXML
|
||||||
|
private TextField tfName;
|
||||||
|
@FXML
|
||||||
|
private TextField tfVorname;
|
||||||
|
@FXML
|
||||||
|
private TextField tfEmail;
|
||||||
|
@FXML
|
||||||
|
private PasswordField pfPasswort;
|
||||||
|
@FXML
|
||||||
|
private TextField tfPLZ;
|
||||||
|
@FXML
|
||||||
|
private TextField tfStadt;
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private TextField tfStrasse;
|
||||||
|
@FXML
|
||||||
|
private TextField tfHausnummer;
|
||||||
|
@FXML
|
||||||
|
private void onKontoErstellenBtClick(){
|
||||||
|
String name = tfName.getText();
|
||||||
|
String vorname = tfVorname.getText();
|
||||||
|
String email = tfEmail.getText();
|
||||||
|
String passwort = pfPasswort.getText();
|
||||||
|
String plz = tfPLZ.getText();
|
||||||
|
String stadt = tfStadt.getText();
|
||||||
|
String strasse = tfStrasse.getText();
|
||||||
|
String hausnummer = tfHausnummer.getText();
|
||||||
|
Alert alert;
|
||||||
|
if(name.isEmpty() || vorname.isEmpty() || email.isEmpty() || passwort.isEmpty() || plz.isEmpty() ||
|
||||||
|
stadt.isEmpty() || strasse.isEmpty() || hausnummer.isEmpty()){
|
||||||
|
|
||||||
|
if(name.isEmpty()){
|
||||||
|
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Name' ist leer.");
|
||||||
|
alert.showAndWait();
|
||||||
|
} else if (vorname.isEmpty()) {
|
||||||
|
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Vorname' ist leer.");
|
||||||
|
alert.showAndWait();
|
||||||
|
} else if (email.isEmpty()) {
|
||||||
|
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'E-Mail' ist leer.");
|
||||||
|
alert.showAndWait();
|
||||||
|
} else if (passwort.isEmpty()) {
|
||||||
|
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Passwort' ist leer.");
|
||||||
|
alert.showAndWait();
|
||||||
|
} else if (plz.isEmpty()) {
|
||||||
|
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Postleitzahl' ist leer.");
|
||||||
|
alert.showAndWait();
|
||||||
|
} else if (stadt.isEmpty()) {
|
||||||
|
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Stadt' ist leer.");
|
||||||
|
alert.showAndWait();
|
||||||
|
} else if (strasse.isEmpty()) {
|
||||||
|
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Straße' ist leer.");
|
||||||
|
alert.showAndWait();
|
||||||
|
}else {
|
||||||
|
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Hausnummer' ist leer.");
|
||||||
|
alert.showAndWait();
|
||||||
|
}
|
||||||
|
|
||||||
|
}else {
|
||||||
|
Address newAdresse = new Address(strasse,hausnummer,plz,stadt);
|
||||||
|
User newUser = new User(name,vorname,passwort,email,newAdresse);
|
||||||
|
long creatNewUser = AccountMgr.createUser(newUser);
|
||||||
|
if (creatNewUser > 0){
|
||||||
|
alert = new Alert(Alert.AlertType.CONFIRMATION,"Ihrer Daten wurde gespeichert.");
|
||||||
|
alert.showAndWait();
|
||||||
|
}
|
||||||
|
tfName.setText("");
|
||||||
|
tfVorname.setText("");
|
||||||
|
tfEmail.setText("");
|
||||||
|
pfPasswort.setText("");
|
||||||
|
tfPLZ.setText("");
|
||||||
|
tfStadt.setText("");
|
||||||
|
tfStrasse.setText("");
|
||||||
|
tfHausnummer.setText("");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
private void onAnmeldenBtClick() throws IOException {
|
||||||
|
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("login-view.fxml"));
|
||||||
|
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
||||||
|
StartViewApplication.primary.setScene(scene);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
package com.bib.essensbestellungsverwaltung;
|
|
||||||
|
|
||||||
public class StartPageController {
|
|
||||||
}
|
|
||||||
@@ -17,13 +17,11 @@ public class StartViewApplication extends Application {
|
|||||||
@Override
|
@Override
|
||||||
public void start(Stage stage) throws IOException {
|
public void start(Stage stage) throws IOException {
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("login-view.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("login-view.fxml"));
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
Scene scene = new Scene(fxmlLoader.load(), 950,700);
|
||||||
//stage = primary;
|
primary = stage;
|
||||||
stage.setTitle("Essen Bestellung im Kindergarten");
|
stage.setTitle("Essen Bestellung im Kindergarten");
|
||||||
stage.setScene(scene);
|
stage.setScene(scene);
|
||||||
stage.show();
|
stage.show();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<font>
|
<font>
|
||||||
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
</font></Button>
|
</font></Button>
|
||||||
<Button id="btSignUp" mnemonicParsing="false" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Sign up" textFill="#7c7b7b" underline="true" onAction="#changeToSignUp" />
|
<Button id="btSignUp" mnemonicParsing="false" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Sign up" textFill="#7c7b7b" underline="true" onAction="#onBtSingnupClick" />
|
||||||
</children>
|
</children>
|
||||||
</HBox>
|
</HBox>
|
||||||
</children>
|
</children>
|
||||||
|
|||||||
@@ -29,72 +29,109 @@
|
|||||||
<Circle fill="#67b5ff2e" layoutX="-23.0" layoutY="368.0" radius="100.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
<Circle fill="#67b5ff2e" layoutX="-23.0" layoutY="368.0" radius="100.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
||||||
<Circle fill="#69b6ffb0" layoutX="235.0" layoutY="310.0" radius="158.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
<Circle fill="#69b6ffb0" layoutX="235.0" layoutY="310.0" radius="158.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
||||||
<Circle fill="#93c4f23d" layoutY="258.0" radius="106.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
<Circle fill="#93c4f23d" layoutY="258.0" radius="106.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
||||||
<VBox alignment="CENTER" layoutX="263.0" prefHeight="400.0" prefWidth="338.0" style="-fx-background-color: white;">
|
<VBox layoutX="262.0" prefHeight="400.0" prefWidth="364.0" style="-fx-background-color: white;">
|
||||||
<children>
|
<children>
|
||||||
<TextField promptText="Email" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;" fx:id="tfEmail">
|
<TextField fx:id="tfName" alignment="TOP_LEFT" prefHeight="26.0" prefWidth="282.0" promptText="Name" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
<effect>
|
<effect>
|
||||||
<Blend />
|
<Blend />
|
||||||
</effect>
|
</effect>
|
||||||
<font>
|
<font>
|
||||||
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
</font>
|
</font>
|
||||||
<VBox.margin>
|
<VBox.margin>
|
||||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
</VBox.margin>
|
</VBox.margin>
|
||||||
</TextField>
|
</TextField>
|
||||||
<TextField promptText="Email bestätigen" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;" fx:id="tfBestätigungEmail">
|
<TextField fx:id="tfVorname" promptText="Vorname" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
<effect>
|
<effect>
|
||||||
<Blend />
|
<Blend />
|
||||||
</effect>
|
</effect>
|
||||||
<font>
|
<font>
|
||||||
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
</font>
|
</font>
|
||||||
<VBox.margin>
|
<VBox.margin>
|
||||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
</VBox.margin>
|
</VBox.margin>
|
||||||
</TextField>
|
</TextField>
|
||||||
<PasswordField promptText="Passwort" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;" fx:id="pfPasswort">
|
<TextField fx:id="tfEmail" promptText="Email" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
<font>
|
<effect>
|
||||||
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
<Blend />
|
||||||
</font>
|
</effect>
|
||||||
<opaqueInsets>
|
<font>
|
||||||
<Insets />
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
</opaqueInsets>
|
</font>
|
||||||
<effect>
|
<VBox.margin>
|
||||||
<Blend />
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
</effect>
|
</VBox.margin>
|
||||||
<VBox.margin>
|
</TextField>
|
||||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
<PasswordField fx:id="pfPasswort" accessibleRole="TEXT_FIELD" promptText="Passwort" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
</VBox.margin>
|
<font>
|
||||||
</PasswordField>
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
<PasswordField promptText="Passwort bestätigen" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;" fx:id="pfBestätigungPassowrt">
|
</font>
|
||||||
<font>
|
<opaqueInsets>
|
||||||
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
<Insets />
|
||||||
</font>
|
</opaqueInsets>
|
||||||
<opaqueInsets>
|
<effect>
|
||||||
<Insets />
|
<Blend />
|
||||||
</opaqueInsets>
|
</effect>
|
||||||
<effect>
|
<VBox.margin>
|
||||||
<Blend />
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
</effect>
|
</VBox.margin>
|
||||||
<VBox.margin>
|
</PasswordField>
|
||||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
<HBox prefHeight="100.0" prefWidth="200.0">
|
||||||
</VBox.margin>
|
<children>
|
||||||
</PasswordField>
|
<TextField fx:id="tfPLZ" prefHeight="35.0" prefWidth="92.0" promptText="PLZ" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
<font>
|
||||||
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
<TextField fx:id="tfStadt" prefHeight="35.0" prefWidth="182.0" promptText="Stadt" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
<font>
|
||||||
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<HBox prefHeight="100.0" prefWidth="200.0">
|
||||||
|
<children>
|
||||||
|
<TextField fx:id="tfStrasse" prefHeight="27.0" prefWidth="134.0" promptText="Straße" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
<font>
|
||||||
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
<TextField fx:id="tfHausnummer" prefHeight="27.0" prefWidth="99.0" promptText="Hausnummer" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
<font>
|
||||||
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
|
</font>
|
||||||
|
</TextField>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
<HBox alignment="CENTER" prefHeight="30.0" prefWidth="238.0">
|
<HBox alignment="CENTER" prefHeight="30.0" prefWidth="238.0">
|
||||||
<children>
|
<children>
|
||||||
<Button mnemonicParsing="false" prefHeight="25.0" prefWidth="106.0" style="-fx-background-radius: 25; -fx-background-color: lightblue;" text="Konto erstellen" textFill="WHITE" onAction="#onKontoErstellenBtClick">
|
<Button mnemonicParsing="false" onAction="#onKontoErstellenBtClick" prefHeight="25.0" prefWidth="106.0" style="-fx-background-radius: 25; -fx-background-color: lightblue;" text="Konto erstellen" textFill="WHITE">
|
||||||
<font>
|
<font>
|
||||||
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
<Font name="Microsoft Tai Le Bold" size="12.0" />
|
||||||
</font></Button>
|
</font></Button>
|
||||||
<Button id="btSignUp" mnemonicParsing="false" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Anmelden" textFill="#7c7b7b" underline="true" onAction="#onAnmeldenBtClick"/>
|
<Button id="btSignUp" mnemonicParsing="false" onAction="#onAnmeldenBtClick" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Anmelden" textFill="#7c7b7b" underline="true" />
|
||||||
</children>
|
</children>
|
||||||
<opaqueInsets>
|
<opaqueInsets>
|
||||||
<Insets top="15.0" />
|
<Insets top="15.0" />
|
||||||
</opaqueInsets>
|
</opaqueInsets>
|
||||||
<VBox.margin>
|
<VBox.margin>
|
||||||
<Insets top="15.0" />
|
<Insets top="15.0" />
|
||||||
</VBox.margin>
|
</VBox.margin>
|
||||||
</HBox>
|
</HBox>
|
||||||
</children>
|
</children>
|
||||||
<padding>
|
<padding>
|
||||||
|
|||||||
Reference in new issue
Block a user