Class MainController

java.lang.Object
com.ehealthsystem.MainController

public class MainController extends Object
Controller for manging the first/"main" scene
  • Field Details

    • loginButton

      public javafx.scene.control.Button loginButton
      attributes with a fx:id assigned in the view
    • registrationButton

      public javafx.scene.control.Button registrationButton
  • Constructor Details

    • MainController

      public MainController()
  • Method Details

    • handleLoginButton

      public void handleLoginButton(javafx.event.ActionEvent event) throws IOException, InterruptedException, com.google.maps.errors.ApiException
      Handle event when login button is pressed. Used to switch to the login scene.
      Parameters:
      event - the event that triggers the execution of the method
      Throws:
      IOException
      InterruptedException
      com.google.maps.errors.ApiException
    • handleRegistrationButton

      public void handleRegistrationButton(javafx.event.ActionEvent event) throws IOException
      Handle event when registration button is pressed Used to switch to the registration scene.
      Parameters:
      event - the event that triggers the execution of the method
      Throws:
      IOException