Views & Controller erstellt

This commit is contained in:
Richard Reiswich 2023-01-27 14:36:10 +01:00
parent c7d0514c43
commit 67b3637505
9 changed files with 294 additions and 411 deletions

View File

@ -18,7 +18,7 @@ public class HelloApplication extends Application {
public void start(Stage stage) throws IOException { public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("login-view.fxml")); FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("login-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 950,480); Scene scene = new Scene(fxmlLoader.load(), 950,480);
primary = stage; //stage = primary;
stage.setTitle("Essen Bestellung im Kindergarten"); stage.setTitle("Essen Bestellung im Kindergarten");
stage.setScene(scene); stage.setScene(scene);
stage.show(); stage.show();

View File

@ -2,8 +2,6 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.image.Image?> <?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?> <?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
@ -11,9 +9,9 @@
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?> <?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"> <AnchorPane prefHeight="625.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> <children>
<VBox id="optionsContainer" layoutY="25.0" prefHeight="400.0" prefWidth="175.0"> <VBox id="optionsContainer" layoutY="25.0" prefHeight="600.0" prefWidth="300.0" stylesheets="@adminMenue.css">
<children> <children>
<HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="179.0"> <HBox alignment="CENTER_LEFT" prefHeight="40.0" prefWidth="179.0">
<children> <children>
@ -22,9 +20,9 @@
<Image url="@pics/to-do-list.png" /> <Image url="@pics/to-do-list.png" />
</image> </image>
</ImageView> </ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Tagesbestellungen" textFill="WHITE"> <Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="300.0" style="-fx-background-color: transparent;" text="Tagesbestellungen" textFill="WHITE">
<font> <font>
<Font size="14.0" /> <Font size="23.0" />
</font> </font>
</Button> </Button>
</children> </children>
@ -39,9 +37,9 @@
<Image url="@pics/spreadsheet.png" /> <Image url="@pics/spreadsheet.png" />
</image> </image>
</ImageView> </ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Monatsabrechnung" textFill="WHITE"> <Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="300.0" style="-fx-background-color: transparent;" text="Monatsabrechnung" textFill="WHITE">
<font> <font>
<Font size="14.0" /> <Font size="23.0" />
</font> </font>
</Button> </Button>
</children> </children>
@ -56,9 +54,9 @@
<Image url="@pics/calendar.png" /> <Image url="@pics/calendar.png" />
</image> </image>
</ImageView> </ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Wochenplan" textFill="WHITE"> <Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="300.0" style="-fx-background-color: transparent;" text="Wochenplan" textFill="WHITE">
<font> <font>
<Font size="14.0" /> <Font size="23.0" />
</font> </font>
</Button> </Button>
</children> </children>
@ -73,9 +71,9 @@
<Image url="@pics/lunch.png" /> <Image url="@pics/lunch.png" />
</image> </image>
</ImageView> </ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Mahlzeit" textFill="WHITE"> <Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="300.0" style="-fx-background-color: transparent;" text="Mahlzeit" textFill="WHITE">
<font> <font>
<Font size="14.0" /> <Font size="23.0" />
</font> </font>
</Button> </Button>
</children> </children>
@ -90,9 +88,9 @@
<Image url="@pics/teamwork.png" /> <Image url="@pics/teamwork.png" />
</image> </image>
</ImageView> </ImageView>
<Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="145.0" style="-fx-background-color: transparent;" text="Mitarbeiter" textFill="WHITE"> <Button id="buttons" alignment="BASELINE_LEFT" mnemonicParsing="false" prefHeight="25.0" prefWidth="300.0" style="-fx-background-color: transparent;" text="Mitarbeiter" textFill="WHITE">
<font> <font>
<Font size="14.0" /> <Font size="23.0" />
</font> </font>
</Button> </Button>
</children> </children>
@ -102,23 +100,10 @@
</HBox> </HBox>
</children> </children>
</VBox> </VBox>
<HBox id="optionsContainer" alignment="TOP_RIGHT" prefHeight="25.0" prefWidth="600.0" style="-fx-background-color: lightblue;"> <HBox id="optionsContainer" alignment="TOP_RIGHT" prefHeight="25.0" prefWidth="1200.0" style="-fx-background-color: lightblue;">
<children> <children>
<Button mnemonicParsing="false" style="-fx-background-color: transparent;" text="Hallo, [Nutzername]" textFill="WHITE" /> <Button mnemonicParsing="false" style="-fx-background-color: transparent;" text="Hallo, [Nutzername]" textFill="WHITE" />
</children></HBox> </children>
<TabPane layoutX="183.0" layoutY="31.0" prefHeight="378.0" prefWidth="408.0" tabClosingPolicy="UNAVAILABLE"> </HBox>
<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> </children>
</AnchorPane> </AnchorPane>

View File

@ -3,10 +3,10 @@
-fx-background-color: rgba(85, 103, 136, 0.64); -fx-background-color: rgba(85, 103, 136, 0.64);
} }
#optionsContainer{ #buttons:pressed{
-fx-background-color: lightblue; -fx-background-color: #748d96;
} }
#optionsContainer{ #optionsContainer{
-fx-background-color: darkblue; -fx-background-color: lightblue;
} }

View File

@ -2,6 +2,8 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.ListView?> <?import javafx.scene.control.ListView?>
<?import javafx.scene.control.TextField?> <?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
@ -10,7 +12,6 @@
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?> <?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"> <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> <children>
<Text layoutX="51.0" layoutY="90.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Kinder"> <Text layoutX="51.0" layoutY="90.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Kinder">
@ -18,8 +19,35 @@
<Font size="58.0" /> <Font size="58.0" />
</font> </font>
</Text> </Text>
<HBox id="contentContainer" alignment="CENTER" layoutX="49.0" layoutY="170.0" prefHeight="250.0" prefWidth="770.0"> <HBox id="contentContainer" alignment="CENTER" layoutX="48.0" layoutY="244.0" prefHeight="250.0" prefWidth="770.0">
<children> <children>
<VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0">
<children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Name">
<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="Geburtsdatum">
<VBox.margin>
<Insets bottom="15.0" top="15.0" />
</VBox.margin>
</Text>
<DatePicker prefHeight="26.0" prefWidth="226.0">
<VBox.margin>
<Insets top="13.0" />
</VBox.margin>
</DatePicker>
</children>
<HBox.margin>
<Insets left="15.0" right="15.0" />
</HBox.margin>
</VBox>
<VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0"> <VBox id="contentContainer" prefHeight="250.0" prefWidth="256.0">
<children> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Alter"> <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Alter">
@ -37,115 +65,11 @@
<Insets bottom="15.0" top="15.0" /> <Insets bottom="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Text> </Text>
<TextField> <ComboBox prefHeight="26.0" prefWidth="230.0">
<VBox.margin> <VBox.margin>
<Insets bottom="15.0" top="15.0" /> <Insets top="13.0" />
</VBox.margin> </VBox.margin>
</TextField> </ComboBox>
</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> </children>
<HBox.margin> <HBox.margin>
<Insets left="15.0" right="15.0" /> <Insets left="15.0" right="15.0" />
@ -158,7 +82,7 @@
<Insets bottom="15.0" top="15.0" /> <Insets bottom="15.0" top="15.0" />
</VBox.margin> </VBox.margin>
</Text> </Text>
<ListView prefHeight="200.0" prefWidth="200.0" /> <ListView prefHeight="101.0" prefWidth="227.0" />
<TextField id="tfAddAllergy" promptText="Allergie hinzufügen"> <TextField id="tfAddAllergy" promptText="Allergie hinzufügen">
<VBox.margin> <VBox.margin>
<Insets top="15.0" /> <Insets top="15.0" />
@ -171,7 +95,6 @@
</VBox> </VBox>
</children> </children>
</HBox> </HBox>
<Text layoutX="49.0" layoutY="433.0" strokeType="OUTSIDE" strokeWidth="0.0" text="[Name des Kindes]" wrappingWidth="99.03515625" /> <Button id="btAddChild" layoutX="360.0" layoutY="592.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="146.0" text="Kind hinzufügen" />
<Button id="btAddChild" layoutX="382.0" layoutY="721.0" mnemonicParsing="false" text="Kind hinzufügen" />
</children> </children>
</AnchorPane> </AnchorPane>

View File

@ -46,12 +46,12 @@
<Insets top="20.0" /> <Insets top="20.0" />
</HBox.margin> </HBox.margin>
</Label> </Label>
<RadioButton mnemonicParsing="false" text="Dessert"> <RadioButton mnemonicParsing="false" text="Hauptgericht">
<HBox.margin> <HBox.margin>
<Insets left="35.0" top="20.0" /> <Insets left="35.0" top="20.0" />
</HBox.margin> </HBox.margin>
</RadioButton> </RadioButton>
<RadioButton mnemonicParsing="false" text="Kein Dessert"> <RadioButton mnemonicParsing="false" text="Dessert">
<HBox.margin> <HBox.margin>
<Insets left="50.0" top="20.0" /> <Insets left="50.0" top="20.0" />
</HBox.margin> </HBox.margin>

View File

@ -0,0 +1,147 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<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">
<children>
<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 alignment="CENTER" layoutX="868.0" layoutY="61.0" mnemonicParsing="false" style="-fx-background-color: white;" text="Login" />
<VBox layoutX="14.0" layoutY="100.0" 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="Montag" textAlignment="CENTER">
<VBox.margin>
<Insets bottom="10.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>
<Insets />
</VBox.margin>
</Button>
<Label prefHeight="18.0" prefWidth="174.0" text="Dessert">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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" />
</children>
</VBox>
<VBox layoutX="194.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
<children>
<Label alignment="CENTER" prefHeight="18.0" prefWidth="210.0" text="Dienstag">
<font>
<Font size="18.0" />
</font>
</Label>
<Label prefHeight="18.0" prefWidth="182.0" text="Hauptgericht">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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" />
<Label prefHeight="18.0" prefWidth="183.0" text="Dessert">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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" />
</children>
</VBox>
<VBox layoutX="554.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
<children>
<Label alignment="CENTER" prefHeight="18.0" prefWidth="214.0" text="Donnerstag">
<font>
<Font size="18.0" />
</font>
</Label>
<Label prefHeight="18.0" prefWidth="178.0" text="Hauptgericht">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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="218.0" text="Button" />
<Label prefHeight="18.0" prefWidth="186.0" text="Dessert">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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="218.0" text="Button" />
</children>
</VBox>
<VBox layoutX="374.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
<children>
<Label alignment="CENTER" prefHeight="18.0" prefWidth="212.0" text="Mittwoch">
<font>
<Font size="18.0" />
</font>
</Label>
<Label prefHeight="18.0" prefWidth="176.0" text="Hauptgericht">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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="218.0" text="Button" />
<Label prefHeight="18.0" prefWidth="177.0" text="Dessert">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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="218.0" text="Button" />
</children>
</VBox>
<VBox layoutX="734.0" layoutY="100.0" prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
<children>
<Label alignment="CENTER" prefHeight="18.0" prefWidth="200.0" text="Freitag">
<font>
<Font size="18.0" />
</font>
</Label>
<Label prefHeight="18.0" prefWidth="190.0" text="Hauptgericht">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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="218.0" text="Button" />
<Label prefHeight="18.0" prefWidth="190.0" text="Dessert">
<VBox.margin>
<Insets top="10.0" />
</VBox.margin>
</Label>
<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="218.0" text="Button" />
</children>
</VBox>
</children>
</AnchorPane>

View File

@ -3,324 +3,137 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?> <?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?> <?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="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"> <AnchorPane prefHeight="600.0" prefWidth="900.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>
<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" 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> <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> <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> <VBox.margin>
<Insets /> <Insets bottom="10.0" />
</VBox.margin> </VBox.margin>
<font> <font>
<Font size="23.0" /> <Font size="18.0" />
</font> </font>
</Text> </Label>
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1"> <Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
<VBox.margin> <VBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" /> <Insets bottom="20.0" />
</VBox.margin> </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>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
</children> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </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> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Dienstag" 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> <VBox.margin>
<Insets /> <Insets bottom="10.0" />
</VBox.margin> </VBox.margin>
<font> <font>
<Font size="23.0" /> <Font size="18.0" />
</font> </font>
</Text> </Label>
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1"> <Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
<VBox.margin> <VBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" /> <Insets bottom="20.0" />
</VBox.margin> </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>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
</children> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </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> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Mittwoch" textAlignment="CENTER" wrappingWidth="120.0"> <Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Mittwoch" textAlignment="CENTER">
<VBox.margin> <VBox.margin>
<Insets /> <Insets bottom="10.0" />
</VBox.margin> </VBox.margin>
<font> <font>
<Font size="23.0" /> <Font size="18.0" />
</font> </font>
</Text> </Label>
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1"> <Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
<VBox.margin> <VBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" /> <Insets bottom="20.0" />
</VBox.margin> </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>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
</children> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </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> <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="Donnerstag" textAlignment="CENTER">
<VBox.margin> <VBox.margin>
<Insets /> <Insets bottom="10.0" />
</VBox.margin> </VBox.margin>
<font> <font>
<Font size="23.0" /> <Font size="18.0" />
</font> </font>
</Text> </Label>
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1"> <Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
<VBox.margin> <VBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" /> <Insets bottom="20.0" />
</VBox.margin> </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>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
</children> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </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> <children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Freitag" textAlignment="CENTER" wrappingWidth="120.0"> <Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Freitag" textAlignment="CENTER">
<VBox.margin> <VBox.margin>
<Insets /> <Insets bottom="10.0" />
</VBox.margin> </VBox.margin>
<font> <font>
<Font size="23.0" /> <Font size="18.0" />
</font> </font>
</Text> </Label>
<Button id="btFoodChoice" mnemonicParsing="false" text="Gericht 1"> <Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
<VBox.margin> <VBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" /> <Insets bottom="20.0" />
</VBox.margin> </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>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
</children> </children>
<HBox.margin>
<Insets bottom="15.0" left="15.0" right="15.0" top="15.0" />
</HBox.margin>
</VBox> </VBox>
</children> </children>
</HBox> </HBox>
<Button id="btPlaceOrder" layoutX="378.0" layoutY="675.0" mnemonicParsing="false" prefHeight="53.0" prefWidth="134.0" text="Jetzt Bestellen" /> <Button id="btPlaceOrder" layoutX="379.0" layoutY="527.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="150.0" text="Bestellung abschicken" />
<ComboBox id="cbChooseChild" layoutX="63.0" layoutY="689.0" prefWidth="150.0" promptText="Kind auswählen" /> <ComboBox id="cbChooseChild" layoutX="29.0" layoutY="34.0" prefWidth="150.0" promptText="Wähle Kind" stylesheets="@menue.css" />
<Text layoutX="650.0" layoutY="711.0" strokeType="OUTSIDE" strokeWidth="0.0" text="[Gesambetrag]" wrappingWidth="168.0"> <ListView id="lvShowDescription" layoutX="20.0" layoutY="115.0" prefHeight="370.0" prefWidth="200.0" />
<font>
<Font size="24.0" />
</font>
</Text>
</children> </children>
</AnchorPane> </AnchorPane>

View File

@ -1,6 +1,5 @@
#btFoodChoice{ #btFoodChoice{
-fx-background-color: transparent; -fx-background-color: transparent;
} }
#btFoodChoice:hover{ #btFoodChoice:hover{
@ -13,6 +12,16 @@
-fx-background-radius: 25; -fx-background-radius: 25;
} }
#btLogin{
-fx-background-color: #9ac1ce;
-fx-text-fill: white;
}
#btLogin:hover{
-fx-underline: true;
-fx-text-fill: black;
}
#btPlaceOrder:hover{ #btPlaceOrder:hover{
-fx-border-width: 0; -fx-border-width: 0;
@ -21,5 +30,11 @@
} }
#cbChooseChild{ #cbChooseChild{
-fx-background-color: lightgray; -fx-background-color: #9ac1ce;
-fx-prompt-text-fill: white;
}
#btFoodChoice:hover{
-fx-underline: true;
-fx-text-fill: black;
} }

View File

@ -75,7 +75,7 @@
</padding></VBox> </padding></VBox>
<HBox id="contentContainer2" alignment="CENTER_RIGHT" prefHeight="40.0" prefWidth="1200.0" stylesheets="@parentMenue.css"> <HBox id="contentContainer2" alignment="CENTER_RIGHT" prefHeight="40.0" prefWidth="1200.0" stylesheets="@parentMenue.css">
<children> <children>
<Button id="btLogOut" mnemonicParsing="false" text="Abmelden" /> <Button id="btLogOut" mnemonicParsing="false" stylesheets="@parentMenue.css" text="Abmelden" />
</children> </children>
</HBox> </HBox>
</children> </children>