use of tab.TabAccess in project Money-Manager by krHasan.
the class DashboardController method mnuLend.
@FXML
private void mnuLend(ActionEvent event) {
(new TabAccess()).setTabName("tabLend");
Stage DashboardStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToMakeATransaction(DashboardStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class DashboardController method mnuBankSettings.
@FXML
private void mnuBankSettings(ActionEvent event) {
(new TabAccess()).setTabName("tabBank");
Stage DashboardStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(DashboardStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class DashboardController method mnuExpense.
@FXML
private void mnuExpense(ActionEvent event) {
(new TabAccess()).setTabName("tabExpense");
Stage DashboardStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToMakeATransaction(DashboardStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class DashboardController method mnuUndo.
@FXML
private void mnuUndo(ActionEvent event) {
Stage DashboardStage = (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(DashboardStage.getX() + 60);
alert.setY(DashboardStage.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(DashboardStage);
}
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class MakeATransactionController method mnuCreateSector.
@FXML
private void mnuCreateSector(ActionEvent event) {
(new TabAccess()).setTabName("tabSector");
Stage MakeATransactionStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(MakeATransactionStage);
}
Aggregations