Search in sources :

Example 1 with TabAccess

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

the class SignInController method newUser.

@FXML
private void newUser(MouseEvent event) {
    if (checkUserPresence()) {
        imgSignIn.setVisible(true);
        txtSQAnswer.clear();
        Alert alert = new Alert(AlertType.CONFIRMATION);
        alert.setTitle("Confirmation");
        alert.setHeaderText("Only one user can use this at a time");
        alert.setContentText("User exists, Delete this one?");
        Stage SignInStage = (Stage) lblNewUser.getScene().getWindow();
        alert.setX(SignInStage.getX() + 200);
        alert.setY(SignInStage.getY() + 170);
        Optional<ButtonType> result = alert.showAndWait();
        if (result.get() == ButtonType.OK) {
            (new TabAccess()).setreRegistrationLodingStatus("deleteUser");
            (new GoToRegistration()).goToReRegistration(SignInStage);
        }
    } else {
        Stage SignInStage = (Stage) lblNewUser.getScene().getWindow();
        (new GoToRegistration()).goToRegistration(SignInStage);
    }
}
Also used : GoToRegistration(operation.GoToRegistration) Stage(javafx.stage.Stage) Alert(javafx.scene.control.Alert) TabAccess(tab.TabAccess) ButtonType(javafx.scene.control.ButtonType) FXML(javafx.fxml.FXML)

Example 2 with TabAccess

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

the class SettingsController method mnuSettings.

@FXML
private void mnuSettings(ActionEvent event) {
    (new TabAccess()).setTabName("tabBank");
    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 3 with TabAccess

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

the class SettingsController method mnuSourceSettings.

@FXML
private void mnuSourceSettings(ActionEvent event) {
    (new TabAccess()).setTabName("tabSource");
    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 4 with TabAccess

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

the class SettingsController method mnuBankSettings.

@FXML
private void mnuBankSettings(ActionEvent event) {
    (new TabAccess()).setTabName("tabBank");
    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 5 with TabAccess

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

the class SettingsController method mnuSystemSettings.

@FXML
private void mnuSystemSettings(ActionEvent event) {
    (new TabAccess()).setTabName("tabSystem");
    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)

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