diff --git a/src/main/java/de/hitec/nhplus/main/MainWindowController.java b/src/main/java/de/hitec/nhplus/main/MainWindowController.java index 728a254..4472722 100644 --- a/src/main/java/de/hitec/nhplus/main/MainWindowController.java +++ b/src/main/java/de/hitec/nhplus/main/MainWindowController.java @@ -9,6 +9,9 @@ import javafx.scene.control.Tab; import javafx.scene.control.TabPane; import javafx.scene.layout.AnchorPane; import javafx.scene.layout.BorderPane; +import de.hitec.nhplus.treatment.Treatment; +import de.hitec.nhplus.medication.Medication; +import de.hitec.nhplus.patient.Patient; import java.io.IOException; import java.util.Objects; @@ -84,7 +87,7 @@ public class MainWindowController { } /** - * Loads the patient page into its tab. + * Loads the {@link Patient} page into its tab. */ private void loadPatientPage() { try { @@ -102,7 +105,7 @@ public class MainWindowController { } /** - * Loads the {@link } page into its tab. + * Loads the {@link Treatment } tab. */ private void loadTreatmentPage() { SelectionModel selectionModel = treatmentTabPane.getSelectionModel(); @@ -115,6 +118,9 @@ public class MainWindowController { } } + /** + * Loads the active {@link Treatment} page into its tab. + */ private void loadActiveTreatmentPage() { try { BorderPane activeTreatmentPane = FXMLLoader.load( @@ -130,6 +136,9 @@ public class MainWindowController { } } + /** + * Loads the locked {@link Treatment} page into its tab. + */ private void loadLockedTreatmentPage() { try { BorderPane treatmentsPane = FXMLLoader.load( @@ -146,7 +155,7 @@ public class MainWindowController { } /** - * Loads the nurse page into its tab. + * Loads the {@link Nurse} page into its tab. */ private void loadNursePage() { SelectionModel selectionModel = nurseTabPane.getSelectionModel(); @@ -196,7 +205,7 @@ public class MainWindowController { } /** - * Loads the medication page into its tab. + * Loads the {@link Medication} page into its tab. */ private void loadMedicationPage() { try { diff --git a/src/main/java/de/hitec/nhplus/nurse/AllNurseController.java b/src/main/java/de/hitec/nhplus/nurse/AllNurseController.java index 77a7a5f..6e17458 100644 --- a/src/main/java/de/hitec/nhplus/nurse/AllNurseController.java +++ b/src/main/java/de/hitec/nhplus/nurse/AllNurseController.java @@ -22,6 +22,7 @@ import java.sql.SQLException; * * @author Dominik Säume * @author Ole Kück + * @author Armin Ribic */ public class AllNurseController { @FXML diff --git a/src/main/java/de/hitec/nhplus/treatment/AllTreatmentController.java b/src/main/java/de/hitec/nhplus/treatment/AllTreatmentController.java index 1cc645d..de8c9d0 100644 --- a/src/main/java/de/hitec/nhplus/treatment/AllTreatmentController.java +++ b/src/main/java/de/hitec/nhplus/treatment/AllTreatmentController.java @@ -28,6 +28,8 @@ import java.util.ArrayList; * * @author Bernd Heidemann * @author Dominik Säume + * @author Armin Ribic + * @author Dorian Nemec */ public class AllTreatmentController { diff --git a/src/main/java/de/hitec/nhplus/treatment/LockedTreatmentController.java b/src/main/java/de/hitec/nhplus/treatment/LockedTreatmentController.java index 34260cb..f458a79 100644 --- a/src/main/java/de/hitec/nhplus/treatment/LockedTreatmentController.java +++ b/src/main/java/de/hitec/nhplus/treatment/LockedTreatmentController.java @@ -42,12 +42,10 @@ public class LockedTreatmentController { private TableColumn columnDeleteDate; private final ObservableList treatments = FXCollections.observableArrayList(); - private NurseDao nurseDao; private TreatmentDao treatmentDao; - private PatientDao patientDao; /** - * This method allows initializing a {@link LockedNurseController} object + * This method allows initializing a {@link LockedTreatmentController} object * that is called after the binding of all the fields. */ public void initialize() { @@ -75,6 +73,9 @@ public class LockedTreatmentController { handleDelete(); } + /** + * Reads all locked {@link Treatment} data and shows it in the table. + */ private void readAllAndShowInTableView() { this.treatments.clear();