MenueController Button highlight

This commit is contained in:
Richard Reiswich 2023-02-01 09:25:40 +01:00
parent b456b6d1d8
commit b7bc440a4f
2 changed files with 330 additions and 133 deletions

View File

@ -1,9 +1,11 @@
package com.bib.essensbestellungsverwaltung; package com.bib.essensbestellungsverwaltung;
import javafx.collections.FXCollections; import javafx.collections.FXCollections;
import javafx.collections.ObservableList; import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.scene.Node; import javafx.scene.Node;
import javafx.scene.control.*; import javafx.scene.control.*;
import javafx.scene.input.MouseEvent;
public class MenueController { public class MenueController {
@ -78,15 +80,8 @@ public class MenueController {
public ObservableList<Node> buttons = FXCollections.observableArrayList(); public ObservableList<Node> buttons = FXCollections.observableArrayList();
public void setButtonActive(Button b){ public void setButtonActive(){
getSiblings(b);
for(Node button : buttons){
button.getStyleClass().remove("active");
if (button.equals(b)){
b.getStyleClass().add("active");;
}
}
} }
public ObservableList<Node> getSiblings(Button b) { public ObservableList<Node> getSiblings(Button b) {
@ -96,4 +91,166 @@ public class MenueController {
} }
public void setButtonActive(Button b) {
getSiblings(b);
for(Node button : buttons){
b.getStyleClass().remove("active");
if (button.equals(b)){
b.getStyleClass().add("active");;
}
}
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtSecondMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btSecondMealMon);
}
@FXML
public void onBtNoMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btNoMealMon);
}
@FXML
public void onBtFirstDessertMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstDessertMon);
}
@FXML
public void onBtSecondDessertMonClick(MouseEvent mouseEvent) {
setButtonActive(btSecondDessertMon);
}
@FXML
public void onBtNoDessertMonClick(MouseEvent mouseEvent) {
setButtonActive(btNoDessertMon);
}
@FXML
public void onBtFirstMealTueClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealTue);
}
@FXML
public void onBtSecondMealTueClick(MouseEvent mouseEvent) {
setButtonActive(btSecondMealTue);
}
@FXML
public void onBtNoMealTueClick(MouseEvent mouseEvent) {
setButtonActive(btNoMealTue);
}
@FXML
public void onBtFirstDessertTueClick(MouseEvent mouseEvent) {
setButtonActive(btFirstDessertTue);
}
@FXML
public void onBtSecondDessertTueClick(MouseEvent mouseEvent) {
setButtonActive(btSecondDessertTue);
}
@FXML
public void onBtNoDessertTueClick(MouseEvent mouseEvent) {
setButtonActive(btNoDessertTue);
}
@FXML
public void onBtFirstMealWedClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealWed);
}
@FXML
public void onBtSecondMealWedClick(MouseEvent mouseEvent) {
setButtonActive(btSecondMealWed);
}
/*
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
@FXML
public void onBtFirstMealMonClick(MouseEvent mouseEvent) {
setButtonActive(btFirstMealMon);
}
*/
} }

View File

@ -11,129 +11,169 @@
<?import javafx.scene.text.Font?> <?import javafx.scene.text.Font?>
<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"> <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>
<Label alignment="CENTER" layoutX="14.0" layoutY="14.0" prefHeight="35.0" prefWidth="895.0" text="Essenbestellung"> <Label alignment="CENTER" layoutX="14.0" layoutY="14.0" prefHeight="35.0" prefWidth="895.0" text="Essenbestellung">
<font> <font>
<Font size="28.0" /> <Font size="28.0" />
</font> </font>
</Label> </Label>
<Button id="btLogin" alignment="CENTER" layoutX="848.0" layoutY="34.0" mnemonicParsing="false" text="Login" /> <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"> <HBox layoutX="220.0" layoutY="87.0" prefHeight="414.0" prefWidth="688.0">
<children> <children>
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> <VBox 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"> <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 bottom="10.0" /> <Insets bottom="10.0" />
</VBox.margin> </VBox.margin>
<font> <font>
<Font size="18.0" /> <Font size="18.0" />
</font> </font>
</Label> </Label>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" /> <VBox prefHeight="200.0" prefWidth="100.0">
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" /> <children>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit"> <Button id="btFoodChoice" fx:id="btFirstMealMon" alignment="CENTER" mnemonicParsing="false" onAction="#onBtFirstMealMonClick" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
<VBox.margin> <Button id="btFoodChoice" fx:id="btSecondMealMon" alignment="CENTER" mnemonicParsing="false" onAction="#onBtSecondMealMonClick" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
<Insets bottom="20.0" /> <Button id="btFoodChoice" fx:id="btNoMealMon" alignment="CENTER" mnemonicParsing="false" onAction="#onBtNoMealMonClick" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
</VBox.margin> <VBox.margin>
</Button> <Insets bottom="20.0" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" /> </VBox.margin>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" /> </Button>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" /> </children>
</children> </VBox>
</VBox> <VBox prefHeight="200.0" prefWidth="100.0">
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> <children>
<children> <Button id="btFoodChoice" fx:id="btFirstDessertMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Dienstag" textAlignment="CENTER"> <Button id="btFoodChoice" fx:id="btSecondDessertMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
<VBox.margin> <Button id="btFoodChoice" fx:id="btNoDessertMon" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
<Insets bottom="10.0" /> </children>
</VBox.margin> </VBox>
<font> </children>
<Font size="18.0" /> </VBox>
</font> <VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
</Label> <children>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" /> <Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Dienstag" textAlignment="CENTER">
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" /> <VBox.margin>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit"> <Insets bottom="10.0" />
<VBox.margin> </VBox.margin>
<Insets bottom="20.0" /> <font>
</VBox.margin> <Font size="18.0" />
</Button> </font>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" /> </Label>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" /> <VBox prefHeight="200.0" prefWidth="100.0">
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" /> <children>
</children> <Button id="btFoodChoice" fx:id="btFirstMealTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
</VBox> <Button id="btFoodChoice" fx:id="btSecondMealTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> <Button id="btFoodChoice" fx:id="btNoMealTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
<children> <VBox.margin>
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Mittwoch" textAlignment="CENTER"> <Insets bottom="20.0" />
<VBox.margin> </VBox.margin>
<Insets bottom="10.0" /> </Button>
</VBox.margin> </children>
<font> </VBox>
<Font size="18.0" /> <VBox prefHeight="200.0" prefWidth="100.0">
</font> <children>
</Label> <Button id="btFoodChoice" fx:id="btFirstDessertTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 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" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" /> <Button id="btFoodChoice" fx:id="btNoDessertTue" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit"> </children>
<VBox.margin> </VBox>
<Insets bottom="20.0" /> </children>
</VBox.margin> </VBox>
</Button> <VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" /> <children>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" /> <Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Mittwoch" textAlignment="CENTER">
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" /> <VBox.margin>
</children> <Insets bottom="10.0" />
</VBox> </VBox.margin>
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> <font>
<children> <Font size="18.0" />
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Donnerstag" textAlignment="CENTER"> </font>
<VBox.margin> </Label>
<Insets bottom="10.0" /> <VBox prefHeight="200.0" prefWidth="100.0">
</VBox.margin> <children>
<font> <Button id="btFoodChoice" fx:id="btFirstMealWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
<Font size="18.0" /> <Button id="btFoodChoice" fx:id="btSecondMealWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
</font> <Button id="btFoodChoice" fx:id="btNoMealWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
</Label> <VBox.margin>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" /> <Insets bottom="20.0" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" /> </VBox.margin>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit"> </Button>
<VBox.margin> </children>
<Insets bottom="20.0" /> </VBox>
</VBox.margin> <VBox prefHeight="200.0" prefWidth="100.0">
</Button> <children>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" /> <Button id="btFoodChoice" fx:id="btFirstDessertWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" 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" fx:id="btSecondDessertWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" 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" /> <Button id="btFoodChoice" fx:id="btNoDessertWed" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" />
</children> </children>
</VBox> </VBox>
<VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;"> </children>
<children> </VBox>
<Label alignment="CENTER" contentDisplay="TOP" prefHeight="23.0" prefWidth="196.0" style="-fx-background-color: lightdarkblue;" text="Freitag" textAlignment="CENTER"> <VBox prefHeight="350.0" prefWidth="180.0" style="-fx-background-color: transparent; -fx-padding: 5;">
<VBox.margin> <children>
<Insets bottom="10.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>
<font> <Insets bottom="10.0" />
<Font size="18.0" /> </VBox.margin>
</font> <font>
</Label> <Font size="18.0" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" /> </font>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" /> </Label>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit"> <VBox prefHeight="200.0" prefWidth="100.0">
<VBox.margin> <children>
<Insets bottom="20.0" /> <Button id="btFoodChoice" fx:id="btFirstMealThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 1" />
</VBox.margin> <Button id="btFoodChoice" fx:id="btSecondMealThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Mahlzeit 2" />
</Button> <Button id="btFoodChoice" fx:id="btNoMealThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="20.0" prefWidth="170.0" text="Keine Mahlzeit">
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" /> <VBox.margin>
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" /> <Insets bottom="20.0" />
<Button id="btFoodChoice" alignment="CENTER" mnemonicParsing="false" prefHeight="20.0" prefWidth="170.0" text="kein Dessert" /> </VBox.margin>
</children> </Button>
</VBox> </children>
</children> </VBox>
</HBox> <VBox prefHeight="200.0" prefWidth="100.0">
<Button id="btPlaceOrder" layoutX="379.0" layoutY="527.0" mnemonicParsing="false" prefHeight="40.0" prefWidth="150.0" text="Bestellung abschicken" /> <children>
<ComboBox id="cbChooseChild" layoutX="29.0" layoutY="34.0" prefWidth="150.0" promptText="Wähle Kind" stylesheets="@menue.css" /> <Button id="btFoodChoice" fx:id="btFirstDessertThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 1" />
<ListView id="lvShowDescription" layoutX="20.0" layoutY="115.0" prefHeight="370.0" prefWidth="200.0" /> <Button id="btFoodChoice" fx:id="btSecondDessertThu" alignment="CENTER" mnemonicParsing="false" onAction="#setButtonActive" prefHeight="78.0" prefWidth="218.0" text="Dessert 2" />
</children> <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" 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> </AnchorPane>