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.Initializable
Controller for the Login UI
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.scene.control.Button
buttonExit
private javafx.scene.control.Button
buttonSignIn
private javafx.scene.control.Label
labelPassword
private javafx.scene.control.Label
labelUserName
private javafx.scene.control.Label
labelZoneID
(package private) javafx.scene.Parent
scene
(package private) javafx.stage.Stage
stage
private javafx.scene.control.PasswordField
textPassword
private javafx.scene.control.TextField
textUserID
-
Constructor Summary
Constructors Constructor Description LoginController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(java.net.URL url, java.util.ResourceBundle resourceBundle)
Initializes the Login Controller(package private) void
onActionLogin(javafx.event.ActionEvent event)
Handler for when the LOG IN button is clicked.(package private) void
onClickButtonExit(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.IOException
Handler 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.SQLException
java.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:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
-resourceBundle
-
-
-