Search in sources :

Example 96 with TabAccess

use of tab.TabAccess in project Money-Manager by krHasan.

the class SettingsController method mnuCreateSector.

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

Example 97 with TabAccess

use of tab.TabAccess in project Money-Manager by krHasan.

the class SettingsController method systembtnWalletBalance.

@FXML
private void systembtnWalletBalance(ActionEvent event) {
    Stage SettingsStage = (Stage) btnDashboard.getScene().getWindow();
    Alert confirmationMsg = new Alert(AlertType.INFORMATION);
    confirmationMsg.setTitle("Starting Wallet Balance");
    confirmationMsg.setHeaderText(null);
    confirmationMsg.setContentText("Press \"Adjust Balance\" Button");
    confirmationMsg.setX(SettingsStage.getX() + 200);
    confirmationMsg.setY(SettingsStage.getY() + 170);
    (new TabAccess()).setTabName("tabExpense");
    (new GoToOperation()).goToMakeATransaction(SettingsStage);
    Timeline idlestage = new Timeline(new KeyFrame(Duration.seconds(5), 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) EventHandler(javafx.event.EventHandler) Alert(javafx.scene.control.Alert) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Example 98 with TabAccess

use of tab.TabAccess in project Money-Manager by krHasan.

the class SettingsController method btnMakeATransaction.

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

Example 99 with TabAccess

use of tab.TabAccess in project Money-Manager by krHasan.

the class TransactionHistoryController method mnuSectorSettings.

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

Example 100 with TabAccess

use of tab.TabAccess in project Money-Manager by krHasan.

the class TransactionHistoryController method mnuLend.

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

Aggregations

FXML (javafx.fxml.FXML)100 TabAccess (tab.TabAccess)100 Stage (javafx.stage.Stage)99 GoToOperation (operation.GoToOperation)95 Alert (javafx.scene.control.Alert)7 ButtonType (javafx.scene.control.ButtonType)6 GoToRegistration (operation.GoToRegistration)2 KeyFrame (javafx.animation.KeyFrame)1 Timeline (javafx.animation.Timeline)1 ActionEvent (javafx.event.ActionEvent)1 EventHandler (javafx.event.EventHandler)1 Tooltip (javafx.scene.control.Tooltip)1 SignInModel (model.SignInModel)1