use of tab.TabAccess 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);
}
}
use of tab.TabAccess 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);
}
use of tab.TabAccess 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);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class HelpController method mnuCreateSector.
@FXML
private void mnuCreateSector(ActionEvent event) {
(new TabAccess()).setTabName("tabSector");
Stage HelpStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(HelpStage);
}
use of tab.TabAccess in project Money-Manager by krHasan.
the class HelpController method mnuCreateSource.
@FXML
private void mnuCreateSource(ActionEvent event) {
(new TabAccess()).setTabName("tabSource");
Stage HelpStage = (Stage) btnSignOut.getScene().getWindow();
(new GoToOperation()).goToSettings(HelpStage);
}
Aggregations