Package app.ui.landingview
Class StaffMainView
java.lang.Object
app.ui.windows.Window
app.ui.landingview.StaffMainView
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.-
Field Summary
Fields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionStaffMainView(int loginViewIndex, int campListViewIndex, int changePasswordWindowIndex) Constructs an instance ofStaffMainView. -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the message loop for the main view.voidonExit()Performs actions upon exiting the main view.voidsetUserName(String userName) Sets the user name for display on the main view.Methods inherited from class app.ui.windows.Window
addOverlay, addWidget, addWidgetAfter, clearArea, clearOuterArea, draw, getLenX, getLenY, getSwitchToWindow, getWidgetIndex, getX, getY, keyStroke, keyStrokeHelper, messageLoopHelper, removeWidget, selectNext, selectPrev, setClear, setPointer, setY, switchFrom
-
Constructor Details
-
StaffMainView
public StaffMainView(int loginViewIndex, int campListViewIndex, int changePasswordWindowIndex) Constructs an instance ofStaffMainView.- 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
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:
messageLoopin classWindow
-
onExit
public void onExit()Performs actions upon exiting the main view.
-