Class LoginView

java.lang.Object
app.ui.windows.Window
app.ui.account.LoginView
All Implemented Interfaces:
ICallBack

public class LoginView extends Window implements ICallBack
The LoginView class represents the UI window for user login. It extends the Window class and handles user authentication and login functionality.
  • 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:
      messageLoop in class Window
    • onExit

      public void onExit()
      Performs necessary clean-up tasks upon exiting the LoginView. Clears button presses to avoid unintended behavior.
      Overrides:
      onExit in class Window
    • onWindowFinished

      public void onWindowFinished(int chose, String choseString)
      An override method from the ICallBack interface. It handles the window finish event, but it's not utilized in this context.
      Specified by:
      onWindowFinished in interface ICallBack
      Parameters:
      chose - The chosen index.
      choseString - The chosen string.