Views hinzugefügt

This commit is contained in:
Richard Reiswich 2023-01-18 02:39:17 +01:00
parent 400ffb0e98
commit f8673ca92a
6 changed files with 689 additions and 169 deletions

View File

@ -1,14 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?> <?import javafx.geometry.Insets?>
<?import java.util.*?> <?import javafx.scene.control.Button?>
<?import javafx.scene.*?> <?import javafx.scene.control.Tab?>
<?import javafx.scene.control.*?> <?import javafx.scene.control.TabPane?>
<?import javafx.scene.layout.*?> <?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<AnchorPane xmlns="http://javafx.com/javafx" <?import javafx.scene.layout.AnchorPane?>
xmlns:fx="http://javafx.com/fxml" <?import javafx.scene.layout.HBox?>
fx:controller="com.bib.essensbestellungsverwaltung.AdminController" <?import javafx.scene.layout.VBox?>
prefHeight="400.0" prefWidth="600.0"> <?import javafx.scene.text.Font?>
<AnchorPane prefHeight="400.0" prefWidth="600.0" stylesheets="@adminMenue.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.bib.essensbestellungsverwaltung.AdminController">
<children>
<VBox id="optionsContainer" layoutY="25.0" prefHeight="400.0" prefWidth="175.0">
<children>
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="179.0">
<children>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/to-do-list.png" />
</image>
</ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Tagesbestellungen" textFill="WHITE">
<font>
<Font size="14.0" />
</font>
</Button>
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</HBox>
<HBox alignment="CENTER_LEFT" prefHeight="35.0" prefWidth="175.0">
<children>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/spreadsheet.png" />
</image>
</ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Monatsabrechnung" textFill="WHITE">
<font>
<Font size="14.0" />
</font>
</Button>
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</HBox>
<HBox alignment="CENTER_LEFT" prefHeight="23.0" prefWidth="175.0">
<children>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/calendar.png" />
</image>
</ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Wochenplan" textFill="WHITE">
<font>
<Font size="14.0" />
</font>
</Button>
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</HBox>
<HBox alignment="CENTER_LEFT" prefHeight="0.0" prefWidth="175.0">
<children>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/lunch.png" />
</image>
</ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Mahlzeit" textFill="WHITE">
<font>
<Font size="14.0" />
</font>
</Button>
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</HBox>
<HBox alignment="CENTER_LEFT" prefHeight="26.0" prefWidth="175.0">
<children>
<ImageView fitHeight="25.0" fitWidth="25.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/teamwork.png" />
</image>
</ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Mitarbeiter" textFill="WHITE">
<font>
<Font size="14.0" />
</font>
</Button>
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</HBox>
</children>
</VBox>
<HBox id="optionsContainer" alignment="TOP_RIGHT" prefHeight="25.0" prefWidth="600.0" style="-fx-background-color: lightblue;">
<children>
<Button mnemonicParsing="false" style="-fx-background-color: transparent;" text="Hallo, [Nutzername]" textFill="WHITE" />
</children></HBox>
<TabPane layoutX="183.0" layoutY="31.0" prefHeight="378.0" prefWidth="408.0" tabClosingPolicy="UNAVAILABLE">
<tabs>
<Tab text="Untitled Tab 1">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
</content>
</Tab>
<Tab text="Untitled Tab 2">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
</content>
</Tab>
</tabs>
</TabPane>
</children>
</AnchorPane> </AnchorPane>

View File

@ -0,0 +1,177 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane prefHeight="760.0" prefWidth="867.0" stylesheets="@child.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.bib.essensbestellungsverwaltung.ParentController">
<children>
<Text layoutX="51.0" layoutY="90.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Kinder">
<font>
<Font size="58.0" />
</font>
</Text>
<HBox id="contentContainer" alignment="CENTER" layoutX="49.0" layoutY="170.0" prefHeight="250.0" prefWidth="770.0">
<children>
<VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0">
<children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Alter">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<TextField prefWidth="97.0">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</TextField>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Gruppe">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<TextField>
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</TextField>
</children>
<HBox.margin>
<Insets left="15.0" right="15.0" />
</HBox.margin>
</VBox>
<VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0">
<children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Geburtsdatum">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<TextField prefWidth="97.0">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</TextField>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Sonstiges">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<TextField>
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</TextField>
</children>
<HBox.margin>
<Insets left="15.0" right="15.0" />
</HBox.margin>
</VBox>
<VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0">
<children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Alergien">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<ListView prefHeight="144.0" prefWidth="227.0" />
<TextField id="tfAddAllergy" promptText="Allergie hinzufügen">
<VBox.margin>
<Insets top="15.0" />
</VBox.margin>
</TextField>
</children>
<HBox.margin>
<Insets left="15.0" right="15.0" />
</HBox.margin>
</VBox>
</children>
</HBox>
<Text layoutX="49.0" layoutY="152.0" strokeType="OUTSIDE" strokeWidth="0.0" text="[Name des Kindes]" wrappingWidth="99.03515625" />
<HBox id="contentContainer" alignment="CENTER" layoutX="49.0" layoutY="464.0" prefHeight="250.0" prefWidth="770.0">
<children>
<VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0">
<children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Alter">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<TextField prefWidth="97.0">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</TextField>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Gruppe">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<TextField>
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</TextField>
</children>
<HBox.margin>
<Insets left="15.0" right="15.0" />
</HBox.margin>
</VBox>
<VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0">
<children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Geburtsdatum">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<TextField prefWidth="97.0">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</TextField>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Sonstiges">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<TextField>
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</TextField>
</children>
<HBox.margin>
<Insets left="15.0" right="15.0" />
</HBox.margin>
</VBox>
<VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0">
<children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Allergien">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<ListView prefHeight="200.0" prefWidth="200.0" />
<TextField id="tfAddAllergy" promptText="Allergie hinzufügen">
<VBox.margin>
<Insets top="15.0" />
</VBox.margin>
</TextField>
</children>
<HBox.margin>
<Insets left="15.0" right="15.0" />
</HBox.margin>
</VBox>
</children>
</HBox>
<Text layoutX="49.0" layoutY="433.0" strokeType="OUTSIDE" strokeWidth="0.0" text="[Name des Kindes]" wrappingWidth="99.03515625" />
<Button id="btAddChild" layoutX="382.0" layoutY="721.0" mnemonicParsing="false" text="Kind hinzufügen" />
</children>
</AnchorPane>

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="com.bib.essensbestellungsverwaltung.ParentController"
prefHeight="400.0" prefWidth="600.0">
</AnchorPane>

View File

@ -12,7 +12,7 @@
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?> <?import javafx.scene.text.Text?>
<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.LaunchController"> <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">
<children> <children>
<VBox alignment="CENTER" prefHeight="400.0" prefWidth="265.0" style="-fx-background-color: lightblue;"> <VBox alignment="CENTER" prefHeight="400.0" prefWidth="265.0" style="-fx-background-color: lightblue;">
<children> <children>

View File

@ -2,146 +2,325 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?> <?import javafx.scene.control.ComboBox?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane prefHeight="536.0" prefWidth="929.0" style="-fx-background-color: lightblue;" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.bib.essensbestellungsverwaltung.MenueController"> <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> <children>
<Label alignment="CENTER" layoutX="14.0" layoutY="14.0" prefHeight="35.0" prefWidth="895.0" text="Essenbestellung"> <HBox alignment="CENTER" layoutX="50.0" layoutY="27.0" prefHeight="648.0" prefWidth="791.0">
<font>
<Font size="28.0" />
</font>
</Label>
<Button alignment="CENTER" layoutX="845.0" layoutY="64.0" mnemonicParsing="false" style="-fx-background-color: white;" text="Login" onAction="#onBtLoginClick"/>
<VBox layoutX="14.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
<children> <children>
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Montag" textAlignment="CENTER"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
<VBox.margin> <children>
<Insets bottom="10.0" /> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Montag" textAlignment="CENTER" wrappingWidth="120.0">
</VBox.margin>
<font>
<Font size="18.0" />
</font>
</Label>
<Label prefHeight="18.0" prefWidth="180.0" text="Hauptgericht" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Button">
<VBox.margin> <VBox.margin>
<Insets /> <Insets />
</VBox.margin> </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>
<Label prefHeight="18.0" prefWidth="174.0" text="Dessert"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Button" /> </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> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </VBox>
<VBox layoutX="194.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
<children> <children>
<Label alignment="CENTER" prefHeight="18.0" prefWidth="210.0" text="Dienstag"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Dienstag" textAlignment="CENTER" wrappingWidth="120.0">
<VBox.margin>
<Insets />
</VBox.margin>
<font> <font>
<Font size="18.0" /> <Font size="23.0" />
</font> </font>
</Label> </Text>
<Label prefHeight="18.0" prefWidth="182.0" text="Hauptgericht"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Button" /> </Button>
<Label prefHeight="18.0" prefWidth="183.0" text="Dessert"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Button" /> </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> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </VBox>
<VBox layoutX="554.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
<children> <children>
<Label alignment="CENTER" prefHeight="18.0" prefWidth="214.0" text="Donnerstag"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Mittwoch" textAlignment="CENTER" wrappingWidth="120.0">
<VBox.margin>
<Insets />
</VBox.margin>
<font> <font>
<Font size="18.0" /> <Font size="23.0" />
</font> </font>
</Label> </Text>
<Label prefHeight="18.0" prefWidth="178.0" text="Hauptgericht"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="218.0" text="Button" /> </Button>
<Label prefHeight="18.0" prefWidth="186.0" text="Dessert"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="218.0" text="Button" /> </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> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </VBox>
<VBox layoutX="374.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
<children> <children>
<Label alignment="CENTER" prefHeight="18.0" prefWidth="212.0" text="Mittwoch"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Donnerstag" textAlignment="CENTER" wrappingWidth="120.0">
<VBox.margin>
<Insets />
</VBox.margin>
<font> <font>
<Font size="18.0" /> <Font size="23.0" />
</font> </font>
</Label> </Text>
<Label prefHeight="18.0" prefWidth="176.0" text="Hauptgericht"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="218.0" text="Button" /> </Button>
<Label prefHeight="18.0" prefWidth="177.0" text="Dessert"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="218.0" text="Button" /> </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> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </VBox>
<VBox layoutX="734.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> <VBox alignment="CENTER" prefHeight="200.0" prefWidth="135.0">
<children> <children>
<Label alignment="CENTER" prefHeight="18.0" prefWidth="200.0" text="Freitag"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Freitag" textAlignment="CENTER" wrappingWidth="120.0">
<VBox.margin>
<Insets />
</VBox.margin>
<font> <font>
<Font size="18.0" /> <Font size="23.0" />
</font> </font>
</Label> </Text>
<Label prefHeight="18.0" prefWidth="190.0" text="Hauptgericht"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="218.0" text="Button" /> </Button>
<Label prefHeight="18.0" prefWidth="190.0" text="Dessert"> <Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 2">
<VBox.margin> <VBox.margin>
<Insets top="10.0" /> <Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Label> <padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> <Insets bottom="25.0" left="20.0" right="20.0" top="25.0" />
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Button" /> </padding>
<Button alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="218.0" text="Button" /> </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> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </VBox>
</children> </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>
</children>
</AnchorPane> </AnchorPane>

View File

@ -1,14 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?> <?import javafx.geometry.Insets?>
<?import java.util.*?> <?import javafx.scene.control.Button?>
<?import javafx.scene.*?> <?import javafx.scene.image.Image?>
<?import javafx.scene.control.*?> <?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<AnchorPane xmlns="http://javafx.com/javafx" <?import javafx.scene.layout.VBox?>
xmlns:fx="http://javafx.com/fxml" <?import javafx.scene.text.Font?>
fx:controller="com.bib.essensbestellungsverwaltung.ParentController"
maxHeight= "-Infinity" maxWidth="-Infinity">
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" stylesheets="parentMenue.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<children>
<VBox id="contentContainer" layoutY="-14.0" prefHeight="814.0" prefWidth="333.0" stylesheets="@parentMenue.css">
<children>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="327.0">
<children>
<ImageView fitHeight="60.0" fitWidth="60.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/menu.png" />
</image>
</ImageView>
<Button id="contentButton" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="260.0" text="Essensplan">
<font>
<Font size="25.0" />
</font>
</Button>
</children>
</HBox>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
<children>
<ImageView fitHeight="60.0" fitWidth="60.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/little-kid.png" />
</image>
</ImageView>
<Button id="contentButton" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="260.0" text="Kind">
<font>
<Font size="25.0" />
</font>
</Button>
</children>
</HBox>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
<children>
<ImageView fitHeight="60.0" fitWidth="60.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/shopping-list.png" />
</image>
</ImageView>
<Button id="contentButton" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="52.0" prefWidth="260.0" text="Bestellung">
<font>
<Font size="25.0" />
</font>
</Button>
</children>
</HBox>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
<children>
<ImageView fitHeight="60.0" fitWidth="60.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/setting.png" />
</image>
</ImageView>
<Button id="contentButton" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="52.0" prefWidth="260.0" text="Nutzereinstellungen">
<font>
<Font size="25.0" />
</font>
</Button>
</children>
</HBox>
</children>
<padding>
<Insets top="50.0" />
</padding></VBox>
<HBox id="contentContainer2" alignment="CENTER_RIGHT" prefHeight="40.0" prefWidth="1200.0" stylesheets="@parentMenue.css">
<children>
<Button id="btLogOut" mnemonicParsing="false" text="Abmelden" />
</children>
</HBox>
</children>
</AnchorPane> </AnchorPane>