#26: Medikamente berabeiten #43
2 changed files with 33 additions and 24 deletions
|
@ -96,6 +96,9 @@ public class AllMedicationController {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save the changes to a {@link Medication}.
|
||||
*/
|
||||
public void updateMedication(Medication medication) {
|
||||
dao = DaoFactory.getInstance().createMedicationDAO();
|
||||
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) {
|
||||
try {
|
||||
FXMLLoader loader = new FXMLLoader(
|
||||
|
|
Loading…
Reference in a new issue