use of tab.TabAccess in project Money-Manager by krHasan.
the class RegistrationIssueController method initialize.
@FXML
public void initialize() {
lodingStatus = new TabAccess().getreRegistrationLodingStatus();
if (lodingStatus.equals("deleteUser")) {
lblHeading.setText("Provide Existing User Information");
lblReTypePassword.setVisible(false);
passReTypePassword.setVisible(false);
loadSQuestion();
btnSave.setManaged(false);
} else if (lodingStatus.equals("forgotPassword")) {
lblHeading.setText("Change Password and S.Q.");
txtUsername.setText(getUsername());
txtUsername.setDisable(true);
loadSQuestion();
btnDelete.setManaged(false);
}
btnCancel.setTooltip(new Tooltip("Cancel the process and take you to Sign In window"));
btnSave.setTooltip(new Tooltip("Save your new password and security question"));
btnDelete.setTooltip(new Tooltip("If all information is given correctly \n" + "then this user will be deleted"));
Tooltip.install(txtUsername, new Tooltip("Your Username"));
Tooltip.install(passPassword, new Tooltip("Give a password, this should not contain space"));
Tooltip.install(passReTypePassword, new Tooltip("Retype the password"));
Tooltip.install(cmboSecurityQuestion, new Tooltip("Choose a security question"));
Tooltip.install(txtAnswer, new Tooltip("Answer your question. Remember this answer.\n" + "If you forget your password, this will \n" + "help you to recover your account."));
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class SignInController method newUser.
@FXML
private void newUser(MouseEvent event) {
if (checkUserPresence()) {
imgSignIn.setVisible(true);
txtSQAnswer.clear();
Alert alert = new Alert(AlertType.CONFIRMATION);
alert.setTitle("Confirmation");
alert.setHeaderText("Only one user can use this at a time");
alert.setContentText("User exists, Delete this one?");
Stage SignInStage = (Stage) lblNewUser.getScene().getWindow();
alert.setX(SignInStage.getX() + 200);
alert.setY(SignInStage.getY() + 170);
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == ButtonType.OK) {
(new TabAccess()).setreRegistrationLodingStatus("deleteUser");
(new GoToRegistration()).goToReRegistration(SignInStage);
}
} else {
Stage SignInStage = (Stage) lblNewUser.getScene().getWindow();
(new GoToRegistration()).goToRegistration(SignInStage);
}
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class MakeATransactionController method mnuBankSettings.
@FXML
private void mnuBankSettings(ActionEvent event) {
(new TabAccess()).setTabName("tabBank");
Stage MakeATransactionStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(MakeATransactionStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class MakeATransactionController method mnuGetMoney.
@FXML
private void mnuGetMoney(ActionEvent event) {
(new TabAccess()).setTabName("tabGetMoney");
Stage MakeATransactionStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToMakeATransaction(MakeATransactionStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class MakeATransactionController method mnuExpense.
@FXML
private void mnuExpense(ActionEvent event) {
(new TabAccess()).setTabName("tabExpense");
Stage MakeATransactionStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToMakeATransaction(MakeATransactionStage);
}
Aggregations