Package app.ui.landingview
Class StudentMainView
java.lang.Object
app.ui.windows.Window
app.ui.landingview.StudentMainView
The
StudentMainView class represents the main landing page for a student user. It extends the Window
class and provides functionalities such as viewing camp details, registering for camps, viewing enquiries, changing
password, and logging out.-
Field Summary
Fields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionStudentMainView(int loginViewIndex, int campListViewIndex, int changePasswordWindowIndex) Constructs an instance ofStudentMainView. -
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
-
StudentMainView
public StudentMainView(int loginViewIndex, int campListViewIndex, int changePasswordWindowIndex) Constructs an instance ofStudentMainView.- 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.
-