Interface BookingView

All Known Implementing Classes:
BookingSwingView

public interface BookingView
This interface provides methods for operating on a user interface for the booking application.
  • Method Details

    • showAllClients

      void showAllClients(List<Client> clients)
      Displays the clients of the given list on the user interface.
      Parameters:
      clients - the List of clients to show.
    • showAllReservations

      void showAllReservations(List<Reservation> reservations)
      Displays the reservations of the given list on the user interface.
      Parameters:
      reservations - the List of reservations to show.
    • reservationAdded

      void reservationAdded(Reservation reservation)
      Displays the reservation just inserted into the repository on the user interface.
      Parameters:
      reservation - the Reservation to show.
    • clientAdded

      void clientAdded(Client client)
      Displays the client just inserted into the repository on the user interface.
      Parameters:
      client - the Client to show.
    • reservationRemoved

      void reservationRemoved(Reservation reservation)
      Makes the just deleted reservation disappear from the user interface.
      Parameters:
      reservation - the Reservation to remove from the view.
    • clientRemoved

      void clientRemoved(Client client)
      Makes the just deleted client disappear from the user interface.
      Parameters:
      client - the Client to remove from the view.
    • clientRenamed

      void clientRenamed(Client oldClient, Client renamedClient)
      Displays the changes of the client just renamed on the user interface.
      Parameters:
      oldClient - the Client to replace from the view.
      renamedClient - the Client that replaces the old one.
    • reservationRescheduled

      void reservationRescheduled(Reservation oldReservation, Reservation rescheduledReservation)
      Displays the changes of the reservation just rescheduled on the user interface.
      Parameters:
      oldReservation - the Reservation to replace from the view.
      rescheduledReservation - the Reservation that replaces the old one.
    • showOperationError

      void showOperationError(String message)
      Displays an error message that involves operation results.
      Parameters:
      message - the message to show.
    • showFormError

      void showFormError(String message)
      Displays an error message that involves input forms.
      Parameters:
      message - the message to show.