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 TypeMethodDescriptionvoidclientAdded(Client client) Displays the client just inserted into the repository on the user interface.voidclientRemoved(Client client) Makes the just deleted client disappear from the user interface.voidclientRenamed(Client oldClient, Client renamedClient) Displays the changes of the client just renamed on the user interface.voidreservationAdded(Reservation reservation) Displays the reservation just inserted into the repository on the user interface.voidreservationRemoved(Reservation reservation) Makes the just deleted reservation disappear from the user interface.voidreservationRescheduled(Reservation oldReservation, Reservation rescheduledReservation) Displays the changes of the reservation just rescheduled on the user interface.voidshowAllClients(List<Client> clients) Displays the clients of the given list on the user interface.voidshowAllReservations(List<Reservation> reservations) Displays the reservations of the given list on the user interface.voidshowFormError(String message) Displays an error message that involves input forms.voidshowOperationError(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- theListof clients to show.
-
showAllReservations
Displays the reservations of the given list on the user interface.- Parameters:
reservations- theListof reservations to show.
-
reservationAdded
Displays the reservation just inserted into the repository on the user interface.- Parameters:
reservation- theReservationto show.
-
clientAdded
Displays the client just inserted into the repository on the user interface.- Parameters:
client- theClientto show.
-
reservationRemoved
Makes the just deleted reservation disappear from the user interface.- Parameters:
reservation- theReservationto remove from the view.
-
clientRemoved
Makes the just deleted client disappear from the user interface.- Parameters:
client- theClientto remove from the view.
-
clientRenamed
Displays the changes of the client just renamed on the user interface.- Parameters:
oldClient- theClientto replace from the view.renamedClient- theClientthat replaces the old one.
-
reservationRescheduled
Displays the changes of the reservation just rescheduled on the user interface.- Parameters:
oldReservation- theReservationto replace from the view.rescheduledReservation- theReservationthat 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.
-