Variablen und Attributen auf englisch umbennent
This commit is contained in:
parent
cd395d1982
commit
7932c7e896
@ -44,4 +44,5 @@ public class Address {
|
||||
this.plz = plz;
|
||||
this.city = city;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -25,4 +25,5 @@ public class Allergy {
|
||||
public String getHandle() {
|
||||
return handle;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -19,4 +19,5 @@ public class FoodType {
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,11 +1,95 @@
|
||||
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 javafx.event.ActionEvent;
|
||||
import java.io.IOException;
|
||||
|
||||
public class SingUpController {
|
||||
public void onKontoErstellenBtClick(ActionEvent actionEvent) {
|
||||
@FXML
|
||||
private TextField tfLastName;
|
||||
@FXML
|
||||
private TextField tfFirstName;
|
||||
@FXML
|
||||
private TextField tfEmail;
|
||||
@FXML
|
||||
private PasswordField pfPassword;
|
||||
@FXML
|
||||
private TextField tfPostCode;
|
||||
@FXML
|
||||
private TextField tfCity;
|
||||
|
||||
@FXML
|
||||
private TextField tfStreet;
|
||||
@FXML
|
||||
private TextField tfHousNumber;
|
||||
@FXML
|
||||
private void onKontoErstellenBtClick(){
|
||||
String lastName = tfLastName.getText();
|
||||
String firstNanme = tfFirstName.getText();
|
||||
String email = tfEmail.getText();
|
||||
String password = pfPassword.getText();
|
||||
String postCode = tfPostCode.getText();
|
||||
String city = tfCity.getText();
|
||||
String street = tfStreet.getText();
|
||||
String housNumber = tfHousNumber.getText();
|
||||
Alert alert;
|
||||
if(lastName.isEmpty() || firstNanme.isEmpty() || email.isEmpty() || password.isEmpty() || postCode.isEmpty() ||
|
||||
city.isEmpty() || street.isEmpty() || housNumber.isEmpty()){
|
||||
|
||||
if(lastName.isEmpty()){
|
||||
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Name' ist leer.");
|
||||
alert.showAndWait();
|
||||
} else if (firstNanme.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 (password.isEmpty()) {
|
||||
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Passwort' ist leer.");
|
||||
alert.showAndWait();
|
||||
} else if (postCode.isEmpty()) {
|
||||
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Postleitzahl' ist leer.");
|
||||
alert.showAndWait();
|
||||
} else if (city.isEmpty()) {
|
||||
alert = new Alert(Alert.AlertType.ERROR," Die Eingabefeld 'Stadt' ist leer.");
|
||||
alert.showAndWait();
|
||||
} else if (street.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();
|
||||
}
|
||||
|
||||
public void onAnmeldenBtClick(ActionEvent actionEvent) {
|
||||
}else {
|
||||
Address newAdresse = new Address(street,housNumber,postCode,city);
|
||||
User newUser = new User(lastName,firstNanme,password,email,newAdresse);
|
||||
long creatNewUser = AccountMgr.createUser(newUser);
|
||||
if (creatNewUser > 0){
|
||||
alert = new Alert(Alert.AlertType.CONFIRMATION,"Ihrer Daten wurde gespeichert.");
|
||||
alert.showAndWait();
|
||||
}
|
||||
tfLastName.setText("");
|
||||
tfFirstName.setText("");
|
||||
tfEmail.setText("");
|
||||
pfPassword.setText("");
|
||||
tfPostCode.setText("");
|
||||
tfCity.setText("");
|
||||
tfStreet.setText("");
|
||||
tfHousNumber.setText("");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@FXML
|
||||
private void onAnmeldenBtClick() throws IOException {
|
||||
FXMLLoader fxmlLoader = new FXMLLoader(StartViewApplication.class.getResource("login-view.fxml"));
|
||||
Scene scene = new Scene(fxmlLoader.load(), 950,700);
|
||||
StartViewApplication.primary.setScene(scene);
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
* @autor: Reshad Meher
|
||||
* Fenstergrößer
|
||||
* Fenstertitle
|
||||
* Parent Root
|
||||
*/
|
||||
package com.bib.essensbestellungsverwaltung;
|
||||
|
||||
|
@ -23,4 +23,5 @@
|
||||
<Button id="btDeletConfim" layoutX="390.0" layoutY="315.0" mnemonicParsing="false" prefHeight="53.0" prefWidth="141.0" text="Bestätigen" />
|
||||
<Button id="btDeleteDeny" layoutX="71.0" layoutY="315.0" mnemonicParsing="false" prefHeight="53.0" prefWidth="141.0" text="zurück" />
|
||||
</children>
|
||||
|
||||
</AnchorPane>
|
||||
|
@ -9,318 +9,173 @@
|
||||
<?import javafx.scene.text.Font?>
|
||||
<?import javafx.scene.text.Text?>
|
||||
|
||||
<?import javafx.scene.control.ListView?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<AnchorPane prefHeight="760.0" prefWidth="867.0" stylesheets="@menue.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.bib.essensbestellungsverwaltung.MenueController">
|
||||
<children>
|
||||
<HBox alignment="CENTER" layoutX="50.0" layoutY="27.0" prefHeight="648.0" prefWidth="791.0">
|
||||
<Label alignment="CENTER" layoutX="14.0" layoutY="14.0" prefHeight="35.0" prefWidth="895.0" text="Essenbestellung">
|
||||
<font>
|
||||
<Font size="28.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<Button id="btLogin" fx:id="btLogin" alignment="CENTER" layoutX="848.0" layoutY="34.0" mnemonicParsing="false" text="Login" />
|
||||
<HBox layoutX="220.0" layoutY="87.0" prefHeight="414.0" prefWidth="688.0">
|
||||
<children>
|
||||
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
|
||||
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
|
||||
<children>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Montag" textAlignment="CENTER" wrappingWidth="120.0">
|
||||
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Montag" textAlignment="CENTER">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
<Insets bottom="10.0" />
|
||||
</VBox.margin>
|
||||
<font>
|
||||
<Font size="23.0" />
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</Text>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
|
||||
</Label>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Button id="btFoodChoice" fx:id="btFirstMealMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondMealMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoMealMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
<Insets bottom="20.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<VBox.margin>
|
||||
<Insets bottom="55.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 1">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
</children>
|
||||
<HBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</HBox.margin>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Dienstag" textAlignment="CENTER" wrappingWidth="120.0">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
</VBox.margin>
|
||||
<font>
|
||||
<Font size="23.0" />
|
||||
</font>
|
||||
</Text>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<VBox.margin>
|
||||
<Insets bottom="55.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 1">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" fx:id="btFirstDessertMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondDessertMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoDessertMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
|
||||
</children>
|
||||
<HBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</HBox.margin>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
|
||||
<children>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Mittwoch" textAlignment="CENTER" wrappingWidth="120.0">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
</VBox.margin>
|
||||
<font>
|
||||
<Font size="23.0" />
|
||||
</font>
|
||||
</Text>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<VBox.margin>
|
||||
<Insets bottom="55.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 1">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
</children>
|
||||
<HBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</HBox.margin>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
|
||||
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
|
||||
<children>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Donnerstag" textAlignment="CENTER" wrappingWidth="120.0">
|
||||
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Dienstag" textAlignment="CENTER">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
<Insets bottom="10.0" />
|
||||
</VBox.margin>
|
||||
<font>
|
||||
<Font size="23.0" />
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</Text>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
|
||||
</Label>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Button id="btFoodChoice" fx:id="btFirstMealTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondMealTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoMealTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
<Insets bottom="20.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<VBox.margin>
|
||||
<Insets bottom="55.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 1">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
</children>
|
||||
<HBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</HBox.margin>
|
||||
</VBox>
|
||||
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Freitag" textAlignment="CENTER" wrappingWidth="120.0">
|
||||
<Button id="btFoodChoice" fx:id="btFirstDessertTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondDessertTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoDessertTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
|
||||
<children>
|
||||
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Mittwoch" textAlignment="CENTER">
|
||||
<VBox.margin>
|
||||
<Insets />
|
||||
<Insets bottom="10.0" />
|
||||
</VBox.margin>
|
||||
<font>
|
||||
<Font size="23.0" />
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</Text>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
|
||||
</Label>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Button id="btFoodChoice" fx:id="btFirstMealWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondMealWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoMealWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
<Insets bottom="20.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<VBox.margin>
|
||||
<Insets bottom="55.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 1">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="Dessert 2">
|
||||
<VBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</VBox.margin>
|
||||
<padding>
|
||||
<Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
<Button id="btFoodChoice" mnemonicParsing="false" text="ablehen">
|
||||
<padding>
|
||||
<Insets left="25.0" right="25.0" />
|
||||
</padding>
|
||||
</Button>
|
||||
</children>
|
||||
<HBox.margin>
|
||||
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
|
||||
</HBox.margin>
|
||||
</VBox>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Button id="btFoodChoice" fx:id="btFirstDessertWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondDessertWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoDessertWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
|
||||
<children>
|
||||
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Donnerstag" textAlignment="CENTER">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" />
|
||||
</VBox.margin>
|
||||
<font>
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Button id="btFoodChoice" fx:id="btFirstMealThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondMealThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoMealThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
|
||||
<VBox.margin>
|
||||
<Insets bottom="20.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Button id="btFoodChoice" fx:id="btFirstDessertThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondDessertThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoDessertThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
|
||||
<children>
|
||||
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Freitag" textAlignment="CENTER">
|
||||
<VBox.margin>
|
||||
<Insets bottom="10.0" />
|
||||
</VBox.margin>
|
||||
<font>
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</Label>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Button id="btFoodChoice" fx:id="btFirstMealFri" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondMealFri" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoMealFri" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
|
||||
<VBox.margin>
|
||||
<Insets bottom="20.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</VBox>
|
||||
<VBox prefHeight="200.0" prefWidth="100.0">
|
||||
<children>
|
||||
<Button id="btFoodChoice" fx:id="btFirstDessertFri" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
|
||||
<Button id="btFoodChoice" fx:id="btSecondDessertFri" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
|
||||
<Button id="btFoodChoice" fx:id="btNoDessertFri" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</VBox>
|
||||
</children>
|
||||
</HBox>
|
||||
<Button id="btPlaceOrder" layoutX="378.0" layoutY="675.0" mnemonicParsing="false" prefHeight="53.0" prefWidth="134.0" text="Jetzt Bestellen" />
|
||||
<ComboBox id="cbChooseChild" layoutX="63.0" layoutY="689.0" prefWidth="150.0" promptText="Kind auswählen" />
|
||||
<Text layoutX="650.0" layoutY="711.0" strokeType="OUTSIDE" strokeWidth="0.0" text="[Gesambetrag]" wrappingWidth="168.0">
|
||||
<font>
|
||||
<Font size="24.0" />
|
||||
</font>
|
||||
</Text>
|
||||
<Button id="btPlaceOrder" fx:id="btSaveOrder" layoutX="379.0" layoutY="527.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="150.0" text="Bestellung abschicken" />
|
||||
<ComboBox id="cbChooseChild" fx:id="cbPickChild" layoutX="29.0" layoutY="34.0" prefWidth="150.0" promptText="Wähle Kind" stylesheets="@menue.css" />
|
||||
<ListView id="lvShowDescription" fx:id="lvFoodInfo" layoutX="20.0" layoutY="115.0" prefHeight="370.0" prefWidth="200.0" />
|
||||
</children>
|
||||
|
||||
</AnchorPane>
|
||||
|
@ -23,3 +23,11 @@
|
||||
#cbChooseChild{
|
||||
-fx-background-color: lightgray;
|
||||
}
|
||||
.btFood{
|
||||
-fx-background-color: transparent;
|
||||
}
|
||||
|
||||
.btFood.active{
|
||||
-fx-background-color: rgba(97, 97, 232, 0.3);
|
||||
-fx-background-radius: 25;
|
||||
}
|
@ -75,8 +75,9 @@
|
||||
</padding></VBox>
|
||||
<HBox id="contentContainer2" alignment="CENTER_RIGHT" prefHeight="40.0" prefWidth="1200.0" stylesheets="@parentMenue.css">
|
||||
<children>
|
||||
<Button id="btLogOut" mnemonicParsing="false" stylesheets="@parentMenue.css" text="Abmelden" />
|
||||
<Button id="btLogOut" mnemonicParsing="false" text="Abmelden" />
|
||||
</children>
|
||||
</HBox>
|
||||
</children>
|
||||
|
||||
</AnchorPane>
|
||||
|
@ -0,0 +1,26 @@
|
||||
#contentContainer{
|
||||
-fx-background-color: #add8e6;
|
||||
}
|
||||
|
||||
#contentContainer2{
|
||||
-fx-background-color: lightblue;
|
||||
}
|
||||
|
||||
#contentButton{
|
||||
-fx-background-color: transparent;
|
||||
}
|
||||
|
||||
#contentButton:hover{
|
||||
-fx-underline: true;
|
||||
-fx-background-color: #78939d;
|
||||
-fx-text-fill: white;
|
||||
}
|
||||
|
||||
#btLogOut{
|
||||
-fx-background-color: transparent;
|
||||
-fx-pref-height: 40px;
|
||||
}
|
||||
|
||||
#btLogOut:hover{
|
||||
-fx-underline: true;
|
||||
}
|
@ -31,7 +31,7 @@
|
||||
<Circle fill="#93c4f23d" layoutY="258.0" radius="106.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
|
||||
<VBox layoutX="262.0" prefHeight="400.0" prefWidth="364.0" style="-fx-background-color: white;">
|
||||
<children>
|
||||
<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;">
|
||||
<TextField fx:id="tfLastName" 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>
|
||||
@ -42,7 +42,7 @@
|
||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<TextField fx:id="tfVorname" promptText="Vorname" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||
<TextField fx:id="tfFirstName" promptText="Vorname" style="-fx-background-color: transparent; -fx-border-color: lightgray; -fx-border-width: 0 0 1 0;">
|
||||
<effect>
|
||||
<Blend />
|
||||
</effect>
|
||||
@ -64,7 +64,7 @@
|
||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<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;">
|
||||
<PasswordField fx:id="pfPassword" accessibleRole="TEXT_FIELD" 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>
|
||||
@ -80,7 +80,7 @@
|
||||
</PasswordField>
|
||||
<HBox prefHeight="100.0" prefWidth="200.0">
|
||||
<children>
|
||||
<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;">
|
||||
<TextField fx:id="tfPostCode" 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>
|
||||
@ -88,7 +88,7 @@
|
||||
<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;">
|
||||
<TextField fx:id="tfCity" 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>
|
||||
@ -100,7 +100,7 @@
|
||||
</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;">
|
||||
<TextField fx:id="tfStreet" 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>
|
||||
@ -108,7 +108,7 @@
|
||||
<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;">
|
||||
<TextField fx:id="tfHousNumber" 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>
|
||||
|
Loading…
Reference in New Issue
Block a user