Class LogInController
java.lang.Object
stud.ntnu.idatt1005.pantrypal.controllers.Controller
stud.ntnu.idatt1005.pantrypal.controllers.LogInController
Controller class for the LogInView. This class is responsible for handling the logic for the
LogInView.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final stud.ntnu.idatt1005.pantrypal.views.LogInView
The view for the LogInControllerFields inherited from class stud.ntnu.idatt1005.pantrypal.controllers.Controller
viewManager
-
Constructor Summary
ConstructorsConstructorDescriptionLogInController
(ViewManager viewManager) Constructor that takes in a ViewManager and sets the view for the controller -
Method Summary
Methods inherited from class stud.ntnu.idatt1005.pantrypal.controllers.Controller
isLoggedIn, onNavLinkPress
-
Field Details
-
view
private final stud.ntnu.idatt1005.pantrypal.views.LogInView viewThe view for the LogInController
-
-
Constructor Details
-
LogInController
Constructor that takes in a ViewManager and sets the view for the controller- Parameters:
viewManager
- the ViewManager for the application
-
-
Method Details
-
logIn
-
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 classController
-