Class StaffMainView

java.lang.Object
app.ui.windows.Window
app.ui.landingview.StaffMainView

public class StaffMainView extends Window
The StaffMainView class represents the main landing page for a staff user. It extends the Window class and provides functionalities such as viewing camp details, changing password, and logging out.
  • Constructor Details

    • StaffMainView

      public StaffMainView(int loginViewIndex, int campListViewIndex, int changePasswordWindowIndex)
      Constructs an instance of StaffMainView.
      Parameters:
      loginViewIndex - The index of the login view window.
      campListViewIndex - The index of the camp list view window.
      changePasswordWindowIndex - The index of the change password window.
  • Method Details

    • setUserName

      public void setUserName(String userName)
      Sets the user name for display on the main view.
      Parameters:
      userName - The user name to set.
    • messageLoop

      public void messageLoop()
      Handles the message loop for the main view.
      Overrides:
      messageLoop in class Window
    • onExit

      public void onExit()
      Performs actions upon exiting the main view.
      Overrides:
      onExit in class Window