#26: Cleanup & Javadoc
All checks were successful
Quality Check / Linting Check (push) Successful in 16s
Quality Check / Linting Check (pull_request) Successful in 21s
Quality Check / Javadoc Check (push) Successful in 37s
Quality Check / Javadoc Check (pull_request) Successful in 33s

This commit is contained in:
Dominik Säume 2024-05-17 15:35:03 +02:00
parent ad3bd8ba0a
commit 8496f714d3
Signed by: SZUT-Dominik
GPG key ID: DACB4B96EB59ABA8
2 changed files with 33 additions and 24 deletions

View file

@ -96,6 +96,9 @@ public class AllMedicationController {
} }
} }
/**
* Method to save the changes to a {@link Medication}.
*/
public void updateMedication(Medication medication) { public void updateMedication(Medication medication) {
dao = DaoFactory.getInstance().createMedicationDAO(); dao = DaoFactory.getInstance().createMedicationDAO();
try { try {
@ -117,6 +120,12 @@ public class AllMedicationController {
} }
} }
/**
* Internal method to create a {@link MedicationModalController MedicationModal}.
*
* @param medication The {@link Medication} which should be edited. Set null to create a new one.
* @param title The Title of the created modal.
*/
public void medicationWindow(Medication medication, String title) { public void medicationWindow(Medication medication, String title) {
try { try {
FXMLLoader loader = new FXMLLoader( FXMLLoader loader = new FXMLLoader(