/** * Display the borrower menu * * @param user The user currently connected * @return Integer What choice user made */ public static int printMenuBorrower(User user) { String[] menuUsers = { "See my Reservations/Borrow", "Make a Reservation/Borrow", "Change User", "Exit" }; Menu menu = new Menu(menuUsers); return menu.menuWait( "User : "******" " + user.getLastname() + ", " + user.getId() + "\n\nChoose what you want to do :\n"); }
/** * Display the admin menu * * @param user The user currently connected * @return Integer What choice user made */ public static int printMenuAdmin(User user) { String[] menuUsers = { "Accept waiting Reservations/Borrow", "Delete Reservations/Borrow", "See all Materials", "See all Users", "Change User", "Exit" }; Menu menu = new Menu(menuUsers); return menu.menuWait( "User : "******" " + user.getLastname() + ", " + user.getId() + "\n\nChoose what you want to do :\n"); }
/** * Display the user selection menu * * @return Integer What choice user made */ public static int printMenuUser() { String[] menuUsers = {"Administrator", "User - Student", "User - Teacher"}; Menu menu = new Menu(menuUsers); return menu.menuWait("Choose the User you want to test :\n"); }