Package com.ehealthsystem
Class MainController
java.lang.Object
com.ehealthsystem.MainController
Controller for manging the first/"main" scene
-
Field Summary
FieldsModifier and TypeFieldDescriptionjavafx.scene.control.Buttonattributes with a fx:id assigned in the viewjavafx.scene.control.Button -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleLoginButton(javafx.event.ActionEvent event) Handle event when login button is pressed.voidhandleRegistrationButton(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:
IOExceptionInterruptedExceptioncom.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
-