Search in sources :

Example 91 with TabAccess

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);
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Example 92 with TabAccess

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);
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Example 93 with TabAccess

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);
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Example 94 with TabAccess

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);
    }
}
Also used : GoToRegistration(operation.GoToRegistration) Stage(javafx.stage.Stage) SignInModel(model.SignInModel) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Example 95 with TabAccess

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);
    }
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) Alert(javafx.scene.control.Alert) TabAccess(tab.TabAccess) ButtonType(javafx.scene.control.ButtonType) FXML(javafx.fxml.FXML)

Aggregations

FXML (javafx.fxml.FXML)100 TabAccess (tab.TabAccess)100 Stage (javafx.stage.Stage)99 GoToOperation (operation.GoToOperation)95 Alert (javafx.scene.control.Alert)7 ButtonType (javafx.scene.control.ButtonType)6 GoToRegistration (operation.GoToRegistration)2 KeyFrame (javafx.animation.KeyFrame)1 Timeline (javafx.animation.Timeline)1 ActionEvent (javafx.event.ActionEvent)1 EventHandler (javafx.event.EventHandler)1 Tooltip (javafx.scene.control.Tooltip)1 SignInModel (model.SignInModel)1