Package UI.AppointmentPages
Class CancelAppointmentPage
java.lang.Object
Common.UserInterface
UI.AppointmentPages.CancelAppointmentPage
The
CancelAppointmentPage
class provides functionality for
canceling scheduled appointments for a patient. It extends UserInterface
and interacts with the PatientAM
manager to manage appointment cancellations.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionCancelAppointmentPage
(PatientAM patientAM) Constructs aCancelAppointmentPage
with the specifiedPatientAM
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays the patient's scheduled appointments.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
CancelAppointmentPage
Constructs aCancelAppointmentPage
with the specifiedPatientAM
instance.- Parameters:
patientAM
- the manager used to access and manage patient's appointments
-
-
Method Details
-
displaySlots
public void displaySlots()Displays the patient's scheduled appointments. If there are no scheduled appointments, an error message is displayed. It then calls the method to cancel a selected appointment.
-