Search in sources :

Example 51 with GoToOperation

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

the class HelpController method mnuUndo.

@FXML
private void mnuUndo(ActionEvent event) {
    Stage HelpStage = (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(HelpStage.getX() + 60);
    alert.setY(HelpStage.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(HelpStage);
    }
}
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)

Example 52 with GoToOperation

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

the class HelpController method mnuAbout.

@FXML
private void mnuAbout(ActionEvent event) {
    Stage HelpStage = (Stage) btnSignOut.getScene().getWindow();
    (new GoToOperation()).goToAbout(HelpStage);
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) FXML(javafx.fxml.FXML)

Example 53 with GoToOperation

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

the class HelpController method mnuGetMoney.

@FXML
private void mnuGetMoney(ActionEvent event) {
    (new TabAccess()).setTabName("tabGetMoney");
    Stage HelpStage = (Stage) btnSignOut.getScene().getWindow();
    (new GoToOperation()).goToMakeATransaction(HelpStage);
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Example 54 with GoToOperation

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

the class HelpController method mnuSectorSettings.

@FXML
private void mnuSectorSettings(ActionEvent event) {
    (new TabAccess()).setTabName("tabSector");
    Stage HelpStage = (Stage) btnSignOut.getScene().getWindow();
    (new GoToOperation()).goToSettings(HelpStage);
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Example 55 with GoToOperation

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

the class HelpController method mnuHowTo.

@FXML
private void mnuHowTo(ActionEvent event) {
    Stage HelpStage = (Stage) btnSignOut.getScene().getWindow();
    (new GoToOperation()).goToHelp(HelpStage);
}
Also used : Stage(javafx.stage.Stage) GoToOperation(operation.GoToOperation) 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