Class MenuUserSelectionOverlayModel

java.lang.Object
model.overlays.MenuOverlayModel
model.overlays.MenuUserSelectionOverlayModel

public class MenuUserSelectionOverlayModel extends MenuOverlayModel
Represents the menu overlay model used for user selection.
  • Constructor Details

    • MenuUserSelectionOverlayModel

      public MenuUserSelectionOverlayModel(MenuModel menuModel)
      Constructs a MenuUserSelectionOverlayModel with the specified MenuModel.
      Parameters:
      menuModel - the MenuModel associated with this overlay
  • Method Details

    • update

      public void update()
      Updates the state of the menu overlay.

      This method is not used in this class.

      Specified by:
      update in class MenuOverlayModel
    • updateUserList

      public void updateUserList()
      Updates the user list by getting the list of users from the UsersManagerModel and setting the selected user to the first user in the list.
    • getSelectedUser

      public User getSelectedUser()
      Returns the selected user.
      Returns:
      the selected user
    • setSelectedUser

      public void setSelectedUser(User selectedUser)
      Sets the selected user.
      Parameters:
      selectedUser - the user to be selected
    • getUsers

      public ArrayList<User> getUsers()
      Returns the list of users.
      Returns:
      an ArrayList of users
    • setUsers

      public void setUsers(ArrayList<User> users)
      Sets the list of users.
      Parameters:
      users - the list of users to be set