public class LoginView extends ViewHandlingDBExceptions
Modifier and Type | Field and Description |
---|---|
private LoginController |
controller |
private javafx.scene.control.Label |
errorLabel |
private static java.lang.String |
LOGIN_ACCOUNT_FXML
The fxml resource for the view
|
private javafx.scene.control.Button |
loginButton |
private javafx.scene.control.PasswordField |
passwordField |
private javafx.scene.control.TextField |
userNameField |
Constructor and Description |
---|
LoginView(LoginController controller,
javafx.scene.Scene scene) |
Modifier and Type | Method and Description |
---|---|
private void |
initialize()
Initializes the Window, disable the "login" button when the username
field or password field is empty
|
void |
onLogin()
Handles the click on the "login" button.
|
void |
onRegister()
Handles the click on the "register" button.
|
void |
showIncorrectCredentialsError() |
void |
showInvalidCredentialsError() |
showDatabaseConnectionError, showDataBaseInternalError
private static final java.lang.String LOGIN_ACCOUNT_FXML
private javafx.scene.control.Button loginButton
private javafx.scene.control.PasswordField passwordField
private javafx.scene.control.TextField userNameField
private javafx.scene.control.Label errorLabel
private LoginController controller
public LoginView(LoginController controller, javafx.scene.Scene scene)
private void initialize()
public void onLogin()
public void showIncorrectCredentialsError()
public void showInvalidCredentialsError()
public void onRegister()