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

View file

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