use of tab.TabAccess in project Money-Manager by krHasan.
the class CashCalculateController method mnuBank.
@FXML
private void mnuBank(ActionEvent event) {
(new TabAccess()).setTabName("tabBank");
Stage CashCalculateStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToMakeATransaction(CashCalculateStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class CashCalculateController method btnMakeATransaction.
@FXML
private void btnMakeATransaction(ActionEvent event) {
(new TabAccess()).setTabName("tabExpense");
Stage CashCalculateStage = (Stage) btnMakeATransaction.getScene().getWindow();
goToMakeATransaction(CashCalculateStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class CashCalculateController method mnuGetMoney.
@FXML
private void mnuGetMoney(ActionEvent event) {
// define which tab should open
(new TabAccess()).setTabName("tabGetMoney");
Stage CashCalculateStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToMakeATransaction(CashCalculateStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class CashCalculateController method mnuUndo.
@FXML
private void mnuUndo(ActionEvent event) {
Stage CashCalculateStage = (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(CashCalculateStage.getX() + 60);
alert.setY(CashCalculateStage.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(CashCalculateStage);
}
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class CashCalculateController method mnuAdvancedSettings.
@FXML
private void mnuAdvancedSettings(ActionEvent event) {
(new TabAccess()).setTabName("tabAdvanced");
Stage CashCalculateStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(CashCalculateStage);
}
Aggregations