Package app.ui.account
Class LoginView
java.lang.Object
app.ui.windows.Window
app.ui.account.LoginView
- All Implemented Interfaces:
ICallBack
The LoginView class represents the UI window for user login.
It extends the Window class and handles user authentication and login functionality.
-
Field Summary
Fields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionLoginView(int y, int x, int studentMainViewIndex, int staffMainViewIndex, int changePasswordWindowIndex) -
Method Summary
Modifier and TypeMethodDescriptionvoidThe main message loop handling user interactions within the LoginView.voidonExit()Performs necessary clean-up tasks upon exiting the LoginView.voidonWindowFinished(int chose, String choseString) An override method from the ICallBack interface.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
-
LoginView
public LoginView(int y, int x, int studentMainViewIndex, int staffMainViewIndex, int changePasswordWindowIndex)
-
-
Method Details
-
messageLoop
public void messageLoop()The main message loop handling user interactions within the LoginView. Checks for button presses and performs login logic based on user input.- Overrides:
messageLoopin classWindow
-
onExit
public void onExit()Performs necessary clean-up tasks upon exiting the LoginView. Clears button presses to avoid unintended behavior. -
onWindowFinished
An override method from the ICallBack interface. It handles the window finish event, but it's not utilized in this context.- Specified by:
onWindowFinishedin interfaceICallBack- Parameters:
chose- The chosen index.choseString- The chosen string.
-