samu_masken #7
@@ -1,8 +1,10 @@
 | 
			
		||||
// Programmiert von Samuel Wolff
 | 
			
		||||
// Noch nicht getestet
 | 
			
		||||
// TODO Alle Zutaten einlesen und Listview mit zutatListView Objekten füllen
 | 
			
		||||
 | 
			
		||||
package de.subway_surfers.vpr_app;
 | 
			
		||||
 | 
			
		||||
import Logik.Kind;
 | 
			
		||||
import javafx.fxml.FXML;
 | 
			
		||||
import javafx.scene.control.Button;
 | 
			
		||||
import javafx.scene.control.CheckBox;
 | 
			
		||||
@@ -10,12 +12,18 @@ import javafx.scene.control.ListView;
 | 
			
		||||
 | 
			
		||||
public class InhaltsstoffeFilternController {
 | 
			
		||||
 | 
			
		||||
	private @FXML ListView zutatListView;
 | 
			
		||||
	private @FXML ListView<zutatListViewController> zutatListView;
 | 
			
		||||
 | 
			
		||||
	private @FXML CheckBox speichernCheckbox;
 | 
			
		||||
	private @FXML CheckBox speichernCheckBox;
 | 
			
		||||
 | 
			
		||||
	private @FXML Button abbrechenButton;
 | 
			
		||||
 | 
			
		||||
	private @FXML Button fortfahrenButton;
 | 
			
		||||
 | 
			
		||||
	public void initialize(){
 | 
			
		||||
 | 
			
		||||
		// hier ListView füllen
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,29 @@
 | 
			
		||||
// Programmiert von Samuel Wolff
 | 
			
		||||
// Noch nicht getestet
 | 
			
		||||
// TODO Sobald Zutat-Klasse implementiert ist Kommentare entfernen
 | 
			
		||||
 | 
			
		||||
package de.subway_surfers.vpr_app;
 | 
			
		||||
 | 
			
		||||
import javafx.fxml.FXML;
 | 
			
		||||
import javafx.scene.control.CheckBox;
 | 
			
		||||
import javafx.scene.control.Label;
 | 
			
		||||
 | 
			
		||||
public class zutatListViewController {
 | 
			
		||||
 | 
			
		||||
	//private Zutat zutat;
 | 
			
		||||
 | 
			
		||||
	private @FXML CheckBox isChecked;
 | 
			
		||||
 | 
			
		||||
	private @FXML Label nameLabel;
 | 
			
		||||
 | 
			
		||||
	/*public zutatListViewController(Zutat zutat){
 | 
			
		||||
		this.zutat = zutat;
 | 
			
		||||
	}*/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	public void initialize(){
 | 
			
		||||
		nameLabel.setText("ZutatA");
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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{
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@@ -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>
 | 
			
		||||
		Reference in New Issue
	
	Block a user