Compare commits
No commits in common. "17f0d666774cf0206fdcde56316f962d518552f8" and "3ac92ea95567e58557d041081f34016ac3394fd7" have entirely different histories.
17f0d66677
...
3ac92ea955
@ -7,8 +7,9 @@
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
<option name="workspaceImportForciblyTurnedOn" value="true" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_X" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
@ -1,16 +1,11 @@
|
||||
package de.subway_surfers.vpr_app;
|
||||
|
||||
import RestAPISchnittstelle.IRestAPI;
|
||||
import RestAPISchnittstelle.RestApiClient;
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.geometry.Insets;
|
||||
import javafx.geometry.Pos;
|
||||
import javafx.scene.control.Accordion;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.ScrollPane;
|
||||
import javafx.scene.control.TitledPane;
|
||||
import javafx.scene.layout.VBox;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@ -33,28 +28,23 @@ public class BestelluebersichtMitarbeiter {
|
||||
|
||||
accordion.setStyle("-fx-box-border: transparent;");
|
||||
|
||||
for (String i : datum) {
|
||||
Accordion gerichtAkkordion = createGerichtAkkordion();
|
||||
|
||||
TitledPane datumUeberschrift = new TitledPane(i, gerichtAkkordion);
|
||||
for (String s : datum) {
|
||||
TitledPane datumUeberschrift = new TitledPane(s, createGerichtAkkordion());
|
||||
|
||||
datumUeberschrift.getStyleClass().add("titledPaneUeberschrift");
|
||||
datumUeberschrift.animatedProperty().set(false);
|
||||
datumUeberschrift.setPadding(new Insets(0, 0, 15, 0));
|
||||
|
||||
//TitledPane personen = new TitledPane("Person", createPersonenAccordion());
|
||||
accordion.getPanes().add(datumUeberschrift);
|
||||
//gerichtAkkordion.getPanes().add(personen);
|
||||
}
|
||||
|
||||
scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);
|
||||
scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.ALWAYS);
|
||||
}
|
||||
|
||||
int anzahlGerichtA = 1;
|
||||
|
||||
public Accordion createGerichtAkkordion() {
|
||||
private Accordion createGerichtAkkordion() {
|
||||
Accordion accordion = new Accordion();
|
||||
int anzahlGerichtA = 1;
|
||||
int anzahlGerichtB = 15;
|
||||
int anzahlGerichtC = 3;
|
||||
int anzahlGerichtD = 2;
|
||||
@ -81,7 +71,6 @@ public class BestelluebersichtMitarbeiter {
|
||||
TitledPane tp = new TitledPane();
|
||||
tp.setText("GerichtB " + anzahlGerichtB + "-Mal " + preisGerichtB * anzahlGerichtB + " €");
|
||||
accordion.getPanes().addAll(tp);
|
||||
|
||||
}
|
||||
|
||||
if (anzahlGerichtC >= 1) {
|
||||
@ -96,49 +85,21 @@ public class BestelluebersichtMitarbeiter {
|
||||
accordion.getPanes().addAll(tp);
|
||||
}
|
||||
|
||||
if (anzahlNachtischA >= 1) {
|
||||
if(anzahlNachtischA >= 1){
|
||||
TitledPane tp = new TitledPane();
|
||||
tp.setText("NachtischA " + anzahlNachtischA + "-Mal " + preisNachtischA * anzahlNachtischA + " €");
|
||||
accordion.getPanes().addAll(tp);
|
||||
}
|
||||
|
||||
if (anzahlNachtischA >= 1) {
|
||||
|
||||
Label label2 = new Label("Hans Schwanz" + " für " + " Anja Arbeitslos");
|
||||
Label label3 = new Label("Drittes Label");
|
||||
|
||||
VBox vbox = new VBox(label2, label3);
|
||||
vbox.setAlignment(Pos.CENTER_LEFT);
|
||||
|
||||
TitledPane tp = new TitledPane("NachtischB " + "-Mal " + preisNachtischB * anzahlGerichtB + " €", vbox);
|
||||
|
||||
if(anzahlNachtischA >= 1){
|
||||
TitledPane tp = new TitledPane();
|
||||
tp.setText("NachtischB " + anzahlNachtischB + "-Mal " + preisNachtischB * anzahlNachtischB + " €");
|
||||
accordion.getPanes().addAll(tp);
|
||||
}
|
||||
|
||||
return accordion;
|
||||
}
|
||||
|
||||
/*
|
||||
public Accordion createPersonenAccordion() {
|
||||
Accordion accordion1 = new Accordion();
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
String kind = "Kind";
|
||||
String elternteil = "Max Heer";
|
||||
|
||||
Label label = new Label();
|
||||
label.setText(elternteil + " für " + kind);
|
||||
|
||||
// Erstellen Sie eine TitledPane für jedes Label
|
||||
TitledPane titledPane = new TitledPane("Kind Informationen", label);
|
||||
|
||||
// Fügen Sie die TitledPane zur Accordion hinzu
|
||||
accordion1.getPanes().add(titledPane);
|
||||
}
|
||||
|
||||
return accordion1;
|
||||
}
|
||||
*/
|
||||
|
||||
public void onAbmelden(ActionEvent event) {
|
||||
VerwaltungApplication.abmelden();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user