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 Summary
Modifier and TypeMethodDescriptionvoid
clientAdded
(Client client) Displays the client just inserted into the repository on the user interface.void
clientRemoved
(Client client) Makes the just deleted client disappear from the user interface.void
clientRenamed
(Client oldClient, Client renamedClient) Displays the changes of the client just renamed on the user interface.void
reservationAdded
(Reservation reservation) Displays the reservation just inserted into the repository on the user interface.void
reservationRemoved
(Reservation reservation) Makes the just deleted reservation disappear from the user interface.void
reservationRescheduled
(Reservation oldReservation, Reservation rescheduledReservation) Displays the changes of the reservation just rescheduled on the user interface.void
showAllClients
(List<Client> clients) Displays the clients of the given list on the user interface.void
showAllReservations
(List<Reservation> reservations) Displays the reservations of the given list on the user interface.void
showFormError
(String message) Displays an error message that involves input forms.void
showOperationError
(String message) Displays an error message that involves operation results.
-
Method Details
-
showAllClients
Displays the clients of the given list on the user interface.- Parameters:
clients
- theList
of clients to show.
-
showAllReservations
Displays the reservations of the given list on the user interface.- Parameters:
reservations
- theList
of reservations to show.
-
reservationAdded
Displays the reservation just inserted into the repository on the user interface.- Parameters:
reservation
- theReservation
to show.
-
clientAdded
Displays the client just inserted into the repository on the user interface.- Parameters:
client
- theClient
to show.
-
reservationRemoved
Makes the just deleted reservation disappear from the user interface.- Parameters:
reservation
- theReservation
to remove from the view.
-
clientRemoved
Makes the just deleted client disappear from the user interface.- Parameters:
client
- theClient
to remove from the view.
-
clientRenamed
Displays the changes of the client just renamed on the user interface.- Parameters:
oldClient
- theClient
to replace from the view.renamedClient
- theClient
that replaces the old one.
-
reservationRescheduled
Displays the changes of the reservation just rescheduled on the user interface.- Parameters:
oldReservation
- theReservation
to replace from the view.rescheduledReservation
- theReservation
that replaces the old one.
-
showOperationError
Displays an error message that involves operation results.- Parameters:
message
- the message to show.
-
showFormError
Displays an error message that involves input forms.- Parameters:
message
- the message to show.
-