Package com.ehealthsystem
Class MainController
java.lang.Object
com.ehealthsystem.MainController
Controller for manging the first/"main" scene
-
Field Summary
Modifier and TypeFieldDescriptionjavafx.scene.control.Button
attributes with a fx:id assigned in the viewjavafx.scene.control.Button
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleLoginButton
(javafx.event.ActionEvent event) Handle event when login button is pressed.void
handleRegistrationButton
(javafx.event.ActionEvent event) Handle event when registration button is pressed Used to switch to the registration scene.
-
Field Details
-
loginButton
public javafx.scene.control.Button loginButtonattributes 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
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
-