Package scheduler.controller
Class LoginController
- java.lang.Object
-
- scheduler.controller.LoginController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
public class LoginController extends java.lang.Object implements javafx.fxml.InitializableController for the Login UI
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.ButtonbuttonExitprivate javafx.scene.control.ButtonbuttonSignInprivate javafx.scene.control.LabellabelPasswordprivate javafx.scene.control.LabellabelUserNameprivate javafx.scene.control.LabellabelZoneID(package private) javafx.scene.Parentscene(package private) javafx.stage.Stagestageprivate javafx.scene.control.PasswordFieldtextPasswordprivate javafx.scene.control.TextFieldtextUserID
-
Constructor Summary
Constructors Constructor Description LoginController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Initializes the Login Controller(package private) voidonActionLogin(javafx.event.ActionEvent event)Handler for when the LOG IN button is clicked.(package private) voidonClickButtonExit(javafx.event.ActionEvent event)Exits the application when the EXIT THE APPLICATION button is clicked
-
-
-
Field Detail
-
stage
javafx.stage.Stage stage
-
scene
javafx.scene.Parent scene
-
textUserID
private javafx.scene.control.TextField textUserID
-
buttonExit
private javafx.scene.control.Button buttonExit
-
buttonSignIn
private javafx.scene.control.Button buttonSignIn
-
textPassword
private javafx.scene.control.PasswordField textPassword
-
labelZoneID
private javafx.scene.control.Label labelZoneID
-
labelUserName
private javafx.scene.control.Label labelUserName
-
labelPassword
private javafx.scene.control.Label labelPassword
-
-
Method Detail
-
onActionLogin
void onActionLogin(javafx.event.ActionEvent event) throws java.sql.SQLException, java.io.IOExceptionHandler for when the LOG IN button is clicked. User name / password are validated, and any errors are returned to the user via a dialogue.- Parameters:
event-- Throws:
java.sql.SQLExceptionjava.io.IOException
-
onClickButtonExit
void onClickButtonExit(javafx.event.ActionEvent event)
Exits the application when the EXIT THE APPLICATION button is clicked- Parameters:
event-
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)Initializes the Login Controller- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
-