Class LogoutApplication
java.lang.Object
javafx.application.Application
com.example.wellbeing_project.logout.LogoutApplication
public class LogoutApplication
extends javafx.application.Application
Method for managing the logout functionality of the application.
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters
-
Field Summary
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
The main method used to launch the applicationvoid
openLogin
(javafx.stage.Stage stage) Closes current stage and opens the login stagevoid
start
(javafx.stage.Stage stage) Starts the logout method by setting up the primaary stage with the logout view.Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Constructor Details
-
LogoutApplication
public LogoutApplication()
-
-
Method Details
-
start
Starts the logout method by setting up the primaary stage with the logout view.- Specified by:
start
in classjavafx.application.Application
- Parameters:
stage
- primary stage for this method.- Throws:
IOException
- if the FXML file cannot be loaded.
-
openLogin
public void openLogin(javafx.stage.Stage stage) Closes current stage and opens the login stage- Parameters:
stage
- the current stage to be closed
-
main
The main method used to launch the application- Parameters:
args
- command line arguments.
-