Search in sources :

Example 86 with GoToOperation

use of operation.GoToOperation in project Money-Manager by krHasan.

the class MakeATransactionController method mnuBank.

@FXML
private void mnuBank(ActionEvent event) {
    (new TabAccess()).setTabName("tabBank");
    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 87 with GoToOperation

use of operation.GoToOperation in project Money-Manager by krHasan.

the class RegistrationIssueController method btnDelete.

@FXML
private void btnDelete(ActionEvent event) {
    if (!txtUsername.getText().equals(getUsername())) {
        lblMsgInformation.setText("Information did't match");
        txtUsername.clear();
        passPassword.clear();
        loadSQuestion();
        txtAnswer.clear();
    } else if (!passPassword.getText().equals(getPassword())) {
        lblMsgInformation.setText("Information did't match");
        txtUsername.clear();
        passPassword.clear();
        loadSQuestion();
        txtAnswer.clear();
    } else if (!securityQuestionAnswerIsOk(txtAnswer.getText())) {
        lblMsgInformation.setText("Information did't match");
        txtUsername.clear();
        passPassword.clear();
        loadSQuestion();
        txtAnswer.clear();
    } else if (!cmboSecurityQuestion.getValue().equals(getSavedSecurityQuestion())) {
        lblMsgInformation.setText("Information did't match");
        txtUsername.clear();
        passPassword.clear();
        loadSQuestion();
        txtAnswer.clear();
    } else {
        new DeleteUserCredentials().initializeApplication();
        Stage RegistrationIssueStage = (Stage) btnDelete.getScene().getWindow();
        (new GoToOperation()).goToSignIn(RegistrationIssueStage);
        Alert confirmationMsg = new Alert(AlertType.INFORMATION);
        confirmationMsg.setTitle("Operation Successful");
        confirmationMsg.setHeaderText(null);
        confirmationMsg.setContentText("User Information Deleted Successfully");
        confirmationMsg.setX(RegistrationIssueStage.getX() + 200);
        confirmationMsg.setY(RegistrationIssueStage.getY() + 170);
        Timeline idlestage = new Timeline(new KeyFrame(Duration.seconds(3), new EventHandler<ActionEvent>() {

            @Override
            public void handle(ActionEvent event) {
                confirmationMsg.hide();
            }
        }));
        idlestage.setCycleCount(1);
        idlestage.play();
        confirmationMsg.showAndWait();
    }
}
Also used : Timeline(javafx.animation.Timeline) ActionEvent(javafx.event.ActionEvent) Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) KeyFrame(javafx.animation.KeyFrame) Alert(javafx.scene.control.Alert) DeleteUserCredentials(system.DeleteUserCredentials) FXML(javafx.fxml.FXML)

Example 88 with GoToOperation

use of operation.GoToOperation in project Money-Manager by krHasan.

the class RegistrationIssueController method btnCancel.

// ////////////////////// Main Functionality /////////////////////////////
@FXML
private void btnCancel(ActionEvent event) {
    Stage RegistrationIssueStage = (Stage) btnCancel.getScene().getWindow();
    (new GoToOperation()).goToSignIn(RegistrationIssueStage);
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) FXML(javafx.fxml.FXML)

Example 89 with GoToOperation

use of operation.GoToOperation 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 90 with GoToOperation

use of operation.GoToOperation 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)

Aggregations

FXML (javafx.fxml.FXML)152 Stage (javafx.stage.Stage)152 GoToOperation (operation.GoToOperation)152 TabAccess (tab.TabAccess)95 Alert (javafx.scene.control.Alert)11 KeyFrame (javafx.animation.KeyFrame)6 Timeline (javafx.animation.Timeline)6 ActionEvent (javafx.event.ActionEvent)6 EventHandler (javafx.event.EventHandler)5 ButtonType (javafx.scene.control.ButtonType)5 HashMap (java.util.HashMap)1 Label (javafx.scene.control.Label)1 TextField (javafx.scene.control.TextField)1 ComboboxList (operation.ComboboxList)1 DateFormatManager (system.DateFormatManager)1 DeleteUserCredentials (system.DeleteUserCredentials)1 Bkash (tab.Bkash)1 GetMoney (tab.GetMoney)1 Rocket (tab.Rocket)1