#7 MainWindowController Tabs added #2
All checks were successful
Quality Check / Linting Check (push) Successful in 12s
Quality Check / Javadoc Check (push) Successful in 21s

This commit is contained in:
Dorian Nemec 2024-05-16 15:43:21 +02:00
parent e5af026223
commit 84df7a7abb
2 changed files with 5 additions and 5 deletions

View file

@ -29,18 +29,18 @@ public class MainWindowController {
@FXML
private Tab patientTab;
@FXML
private AnchorPane treatmentPage;
private AnchorPane activeTreatmentPage;
@FXML
private Tab treatmentTab;
@FXML
private AnchorPane activeTreatmentPage;
@FXML
private Tab activeTreatmentTab;
@FXML
private AnchorPane lockedTreatmentPage;
@FXML
private Tab lockedTreatmentTab;
@FXML
private TabPane treatmentPane;
@FXML
private Tab nurseTab;
@FXML
private TabPane nurseTabPane;
@ -103,7 +103,7 @@ public class MainWindowController {
BorderPane treatmentsPane = FXMLLoader.load(
Objects.requireNonNull(Main.class.getResource("/de/hitec/nhplus/treatment/AllTreatmentView.fxml"))
);
treatmentPage.getChildren().setAll(treatmentsPane);
activeTreatmentPage.getChildren().setAll(treatmentsPane);
AnchorPane.setTopAnchor(treatmentsPane, 0d);
AnchorPane.setBottomAnchor(treatmentsPane, 0d);
AnchorPane.setLeftAnchor(treatmentsPane, 0d);

View file

@ -15,7 +15,7 @@
<Tab fx:id="treatmentTab" text="Behandlungen">
<TabPane fx:id="treatmentPane" tabClosingPolicy="UNAVAILABLE">
<Tab fx:id="activeTreatmentTab" text="Behandlungen">
<AnchorPane fx:id="treatmentPage"/>
<AnchorPane fx:id="activeTreatmentPage"/>
</Tab>
<Tab fx:id="lockedTreatmentTab" text="Gesperrte Behandlungen">
<AnchorPane fx:id="lockedTreatmentPage" />