#7 Javadoc ergänzt #1
Some checks failed
Quality Check / Linting Check (push) Failing after 12s
Quality Check / Javadoc Check (push) Successful in 20s

This commit is contained in:
Dorian Nemec 2024-05-17 12:45:47 +02:00
parent c852265649
commit 15f4c1f3b0
4 changed files with 20 additions and 7 deletions

View file

@ -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<Tab> 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<Tab> 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 {

View file

@ -22,6 +22,7 @@ import java.sql.SQLException;
*
* @author Dominik Säume
* @author Ole Kück
* @author Armin Ribic
*/
public class AllNurseController {
@FXML

View file

@ -28,6 +28,8 @@ import java.util.ArrayList;
*
* @author Bernd Heidemann
* @author Dominik Säume
* @author Armin Ribic
* @author Dorian Nemec
*/
public class AllTreatmentController {

View file

@ -42,12 +42,10 @@ public class LockedTreatmentController {
private TableColumn<Treatment, String> columnDeleteDate;
private final ObservableList<Treatment> 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();