Search in sources :

Example 16 with TabAccess

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

the class RegistrationIssueController method initialize.

@FXML
public void initialize() {
    lodingStatus = new TabAccess().getreRegistrationLodingStatus();
    if (lodingStatus.equals("deleteUser")) {
        lblHeading.setText("Provide Existing User Information");
        lblReTypePassword.setVisible(false);
        passReTypePassword.setVisible(false);
        loadSQuestion();
        btnSave.setManaged(false);
    } else if (lodingStatus.equals("forgotPassword")) {
        lblHeading.setText("Change Password and S.Q.");
        txtUsername.setText(getUsername());
        txtUsername.setDisable(true);
        loadSQuestion();
        btnDelete.setManaged(false);
    }
    btnCancel.setTooltip(new Tooltip("Cancel the process and take you to Sign In window"));
    btnSave.setTooltip(new Tooltip("Save your new password and security question"));
    btnDelete.setTooltip(new Tooltip("If all information is given correctly \n" + "then this user will be deleted"));
    Tooltip.install(txtUsername, new Tooltip("Your Username"));
    Tooltip.install(passPassword, new Tooltip("Give a password, this should not contain space"));
    Tooltip.install(passReTypePassword, new Tooltip("Retype the password"));
    Tooltip.install(cmboSecurityQuestion, new Tooltip("Choose a security question"));
    Tooltip.install(txtAnswer, new Tooltip("Answer your question. Remember this answer.\n" + "If you forget your password, this will \n" + "help you to recover your account."));
}
Also used : Tooltip(javafx.scene.control.Tooltip) TabAccess(tab.TabAccess) FXML(javafx.fxml.FXML)

Example 17 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 18 with TabAccess

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

the class MakeATransactionController method mnuBankSettings.

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

Example 19 with TabAccess

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

the class MakeATransactionController method mnuGetMoney.

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

Example 20 with TabAccess

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

the class MakeATransactionController method mnuExpense.

@FXML
private void mnuExpense(ActionEvent event) {
    (new TabAccess()).setTabName("tabExpense");
    Stage MakeATransactionStage = (Stage) btnSignOut.getScene().getWindow();
    (new GoToOperation()).goToMakeATransaction(MakeATransactionStage);
}
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