public class RegisterView extends ViewHandlingDBExceptions
Modifier and Type | Field and Description |
---|---|
private javafx.scene.control.CheckBox |
checkBoxToU |
private javafx.scene.control.TextField |
confirmPasswordField |
private RegisterController |
controller |
private javafx.scene.control.Label |
errorLabel |
private javafx.scene.control.TextField |
passwordField |
private static java.lang.String |
REGISTER_ACCOUNT_FXML
The fxml resource for the view
|
private javafx.scene.control.Button |
registerButton |
private javafx.scene.control.TextField |
userNameField |
Constructor and Description |
---|
RegisterView(RegisterController controller,
javafx.scene.Scene scene) |
Modifier and Type | Method and Description |
---|---|
private void |
initialize()
Initialize the Window, disable the register button when username field or
password field when one of them is empty or checkbox of Terms of use is not
checked.
|
void |
onRegister()
Handles the click on the Register button.
|
void |
onReturnToLogin()
Handles the click on the return to login button.
|
void |
showInfoPasswordPopup() |
void |
showInvalidCredentialsError() |
void |
showSuccessPopup() |
void |
showUserNameTakenError() |
showDatabaseConnectionError, showDataBaseInternalError
private static final java.lang.String REGISTER_ACCOUNT_FXML
private javafx.scene.control.TextField userNameField
private javafx.scene.control.TextField passwordField
private javafx.scene.control.TextField confirmPasswordField
private javafx.scene.control.CheckBox checkBoxToU
private javafx.scene.control.Button registerButton
private javafx.scene.control.Label errorLabel
private RegisterController controller
public RegisterView(RegisterController controller, javafx.scene.Scene scene)
private void initialize()
public void showSuccessPopup()
public void showInvalidCredentialsError()
public void showUserNameTakenError()
public void showInfoPasswordPopup()
public void onRegister()
public void onReturnToLogin()