Class ViewUpcomingAppointmentsPage

java.lang.Object
Common.UserInterface
UI.AppointmentPages.ViewUpcomingAppointmentsPage

public class ViewUpcomingAppointmentsPage extends UserInterface
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.
  • Constructor Details

    • ViewUpcomingAppointmentsPage

      public ViewUpcomingAppointmentsPage(DoctorAM doctorAM)
      Constructs a ViewUpcomingAppointmentsPage with the specified DoctorAM 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.