ListView Item Controller + View

This commit is contained in:
2023-12-13 18:08:20 +01:00
parent e8d29f851c
commit 7eea5b2a50
5 changed files with 87 additions and 15 deletions

View File

@@ -1,25 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Programmiert von Samuel Wolff
Noch nicht getestet -->
Noch nicht getestet
TODO Style einbauen
-->
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<VBox xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="de.subway_surfers.vpr_app.InhaltsstoffeFilternController"
prefHeight="400.0" prefWidth="600.0">
<VBox prefHeight="400.0" prefWidth="600.0" stylesheets="@layout.css" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="de.subway_surfers.vpr_app.InhaltsstoffeFilternController">
<Label text="Nach Inhaltsstoffen filtern" />
<ListView fx:id="zutatListView"/>
<ListView fx:id="zutatListView" />
<HBox>
<CheckBox fx:id="speichernCheckBox" text="Auswahl für KindA speichern "/>
<Button fx:id="abbrechenButton" text="Abbrechen" />
<Button fx:id="fortfahrenButton" text="Fortfahren" />
<HBox prefHeight="128.0" prefWidth="600.0" styleClass="bottomHbox">
<CheckBox fx:id="speichernCheckBox" text="Auswahl für KindA speichern " />
<Button fx:id="abbrechenButton" cancelButton="true" text="Abbrechen" />
<Button fx:id="fortfahrenButton" defaultButton="true" text="Fortfahren" />
</HBox>
</VBox>

View File

@@ -81,4 +81,19 @@
.falscheEingabe {
-fx-background-color: #FFDCDC;
-fx-text-fill: #FFDCDC;
}
/* Inhaltsstoffe filtern View */
.bottomHbox{
-fx-padding: 5px;
-fx-border-insets: 5px;
-fx-background-insets: 5px;
-fx-alignment: CENTER_LEFT;
}
.bottomHbox > CheckBox{
}

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Programmiert von Samuel Wolff
Noch nicht getestet
TODO Style einbauen
-->
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<HBox xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="de.subway_surfers.vpr_app.zutatListViewController"
prefHeight="400.0" prefWidth="600.0"
stylesheets="@layout.css">
<CheckBox fx:id="isChecked" />
<Label fx:id="nameLabel" text="placeholder" />
</HBox>