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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    The main method used to launch the application
    void
    openLogin(javafx.stage.Stage stage)
    Closes current stage and opens the login stage
    void
    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

    Methods inherited from class java.lang.Object

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

    • LogoutApplication

      public LogoutApplication()
  • Method Details

    • start

      public void start(javafx.stage.Stage stage) throws IOException
      Starts the logout method by setting up the primaary stage with the logout view.
      Specified by:
      start in class javafx.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

      public static void main(String[] args)
      The main method used to launch the application
      Parameters:
      args - command line arguments.