java.lang.Object
stud.ntnu.idatt1005.pantrypal.controllers.Controller
stud.ntnu.idatt1005.pantrypal.controllers.LogInController

public class LogInController extends Controller
Controller class for the LogInView. This class is responsible for handling the logic for the LogInView.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final stud.ntnu.idatt1005.pantrypal.views.LogInView
    The view for the LogInController

    Fields inherited from class stud.ntnu.idatt1005.pantrypal.controllers.Controller

    viewManager
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor that takes in a ViewManager and sets the view for the controller
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    logIn(String username)
     
    void
    Logs out the user and navigates to the reloads the initial application, without login.

    Methods inherited from class stud.ntnu.idatt1005.pantrypal.controllers.Controller

    isLoggedIn, onNavLinkPress

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • view

      private final stud.ntnu.idatt1005.pantrypal.views.LogInView view
      The view for the LogInController
  • Constructor Details

    • LogInController

      public LogInController(ViewManager viewManager)
      Constructor that takes in a ViewManager and sets the view for the controller
      Parameters:
      viewManager - the ViewManager for the application
  • Method Details

    • logIn

      public void logIn(String username)
    • logOut

      public void logOut()
      Description copied from class: Controller
      Logs out the user and navigates to the reloads the initial application, without login.
      Overrides:
      logOut in class Controller