Package UI.AppointmentPages
Class ViewUpcomingAppointmentsPage
java.lang.Object
Common.UserInterface
UI.AppointmentPages.ViewUpcomingAppointmentsPage
The
ViewUpcomingAppointmentsPage
class provides functionality for
viewing upcoming appointments for a doctor. It extends UserInterface
and interacts with the DoctorAM
manager to retrieve appointment details.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionViewUpcomingAppointmentsPage
(DoctorAM doctorAM) Constructs aViewUpcomingAppointmentsPage
with the specifiedDoctorAM
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays upcoming appointments for the doctor.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
ViewUpcomingAppointmentsPage
Constructs aViewUpcomingAppointmentsPage
with the specifiedDoctorAM
instance.- Parameters:
doctorAM
- the manager used to access and manage doctor's appointments
-
-
Method Details
-
viewUpcomingAppointments
public void viewUpcomingAppointments()Displays upcoming appointments for the doctor. It retrieves confirmed appointments and displays their details. If no upcoming appointments are found, an error message is displayed.
-