use of tab.TabAccess in project Money-Manager by krHasan.
the class TransactionHistoryController method mnuBankSettings.
@FXML
private void mnuBankSettings(ActionEvent event) {
(new TabAccess()).setTabName("tabBank");
Stage TransactionHistoryStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(TransactionHistoryStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class MakeATransactionController method mnuLend.
@FXML
private void mnuLend(ActionEvent event) {
(new TabAccess()).setTabName("tabLend");
Stage MakeATransactionStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToMakeATransaction(MakeATransactionStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class MakeATransactionController method mnuCreateSource.
@FXML
private void mnuCreateSource(ActionEvent event) {
(new TabAccess()).setTabName("tabSource");
Stage MakeATransactionStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(MakeATransactionStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class SignInController method passwordChangeOk.
@FXML
private void passwordChangeOk(ActionEvent event) {
if (!new SignInModel().securityQuestionAnswerIsOk(txtSQAnswer.getText())) {
lblForgetPassMsg.setText("Answer didn't match");
txtSQAnswer.clear();
} else if (!cmboSecurityQuetion.getValue().equals(getSavedSecurityQuestion())) {
lblForgetPassMsg.setText("Question didn't match");
txtSQAnswer.clear();
} else {
(new TabAccess()).setreRegistrationLodingStatus("forgotPassword");
Stage SignInStage = (Stage) btnOk.getScene().getWindow();
(new GoToRegistration()).goToReRegistration(SignInStage);
}
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class SettingsController method mnuUndo.
@FXML
private void mnuUndo(ActionEvent event) {
Stage SettingsStage = (Stage) btnSignOut.getScene().getWindow();
Alert alert = new Alert(AlertType.CONFIRMATION);
alert.setTitle("Action Failed");
alert.setHeaderText("Undo Function Works Only From \"Make A Transaction\" and \"History\" Window");
alert.setContentText("Press \"OK\" to go to \"Make A Transaction\" window");
alert.setX(SettingsStage.getX() + 60);
alert.setY(SettingsStage.getY() + 170);
Optional<ButtonType> result = alert.showAndWait();
if (result.get() == ButtonType.OK) {
// name of which Tab should open
(new TabAccess()).setTabName("tabGetMoney");
(new GoToOperation()).goToMakeATransaction(SettingsStage);
}
}
Aggregations