Package org.rat.free.security.makifx.core.utils

Examples of org.rat.free.security.makifx.core.utils.AnswarePopupMessage


            exc.printStackTrace();
            alert("err_in_ck_plugin_save1", "Error", "Error on saving data.");
            return;
        }

        createPopupMessage("main_save_msg", new AnswarePopupMessage() {

            @Override
            public void onOkAnsware() {

                String new_text_file = null;

                try {

                    //========================================================//
                    //========================================================//
                    //========================================================//
                    new_text_file = getEncryptedMapToXml();
                    //========================================================//
                    //========================================================//
                    //========================================================//

                    if (Constants.SAVE_XML_TO_TEST) {
                        UtilityFX.saveText(new_text_file, maki_directory.toString()
                                + File.separator + maki_file_map.getName() + "_" + UtilityFX.dataP() + ".xml");
                    }

                } catch (Exception exc) {
                    log("ERROR - In save file EXC:" + exc);
                    exc.printStackTrace();
                    alert("err_in_save1", "Error", "Can't save data! Please check your installation directory.");
                    return;
                }

                if (new_text_file == null) {
                    alert("err_in_save2", "Error", "Encryption failed! Can't save data.");
                    return;
                }

                try {

                    __btn_save.setDisable(true);

                    if (checkNewFileToSave(new_text_file)) {

                        save(new_text_file, true);
                        setStatusMessage("Save complete.", 3000);

                    } else {
                        alert("err_in_ck_save_new_file1", "Warning", "Can't save data! Please "
                                + "check if is present an invalid character in your account or notes and try again to save. INVALID CHARS:(£, §, ...)");
                    }
                } catch (BaseApplicationException exc) {
                    log("### ERROR ### - SAVE main_save_msg file EXC:" + exc);
                    UtilityFX.exc(exc);
                    exc.printStackTrace();
                    alert("err_in_save_grave1", "Error", exc.getMessage(), true, new AnswarePopupMessage() {

                        @Override
                        public void onOkAnsware() {
                            openAccountsDirectory();
                        }
View Full Code Here


        if (answare != null) {
            if (Answare.NEGATIVE.equals(answare)) {

                String message = defaultMessage(answare);

                createPopupMessage("main_exit_onclose_running_op_msg", new AnswarePopupMessage() {
                    @Override
                    public void onOkAnsware() {
                        sysExit(__EXIT_NO_ERROR__);
                    }

                    @Override
                    public void onCancelAnsware() {
                    }
                }).setHeader("Warning")
                        .setContent(RBLoader.ll(message) + "\n"
                                + RBLoader.ll("Continue and close the program ?"))
                        .setOkCancelButton("Exit", "Cancel")
                        .setIcon(UtilityFX.getImage("help_24.png"))
                        .show();
            } else {

                createPopupMessage("main_exit_onclose_msg", new AnswarePopupMessage() {
                    @Override
                    public void onOkAnsware() {
                        sysExit(__EXIT_NO_ERROR__);
                    }
View Full Code Here

        this.__listener = listener;
        this.__settings = settings;
        this.__id = id;

        if (this.__listener == null) {
            this.__listener = new AnswarePopupMessage() {

                @Override
                public void onOkAnsware() {
                }
View Full Code Here

            p_less_lbl.setText(RBLoader.ll("Processes in Less"));

            __btn_save_config = ToolBarAction.newButton(
                    "save_config", "Make List Process",
                    "flash_24.png", (ActionEvent e) -> {
                        manager.createPopupMessage("save_config_question", new AnswarePopupMessage() {
                            @Override
                            public void onOkAnsware() {
                                save();
                            }
View Full Code Here

                        deleteSelectedEntry();
                    });

            __btn_bck_remove_all = ToolBarAction.newButton("btn_bck_remove_all", "Delete All Value",
                    "trash_24.png", (ActionEvent e) -> {
                        manager.createPopupMessage("bk_del_all_operation", new AnswarePopupMessage() {
                            @Override
                            public void onOkAnsware() {
                                deleteAllEntry();
                            }

                            @Override
                            public void onCancelAnsware() {
                            }
                        }).setHeader(RBLoader.ll("Delete All Backups."))
                        .setContent(RBLoader.ll("Confirm delete all backups ?"))
                        .setOkCancelButton(RBLoader.ll("Ok"),
                                RBLoader.ll("Cancel"))
                        .setIcon(UtilityFX.getImage("help_24.png"))
                        .show();
                    });

            __btn_bck_start_backup = ToolBarAction.newButton("btn_bck_start_backup", "Start Backup",
                    "video_play_24.png", (ActionEvent e) -> {
                        manager.createPopupMessage("bk_start_operation", new AnswarePopupMessage() {
                            @Override
                            public void onOkAnsware() {
                                startBackup();
                            }

                            @Override
                            public void onCancelAnsware() {
                            }
                        }).setHeader("Start Backup.")
                        .setContent("Confirm run backup?\n\n"
                                + "Warning: this operation always overwrites every file in the target directory. "
                                + "Please, make sure that you have set the correct input value.")
                        .setOkCancelButton("Ok", "Cancel")
                        .setIcon(UtilityFX.getImage("help_24.png"))
                        .show();
                    });

            __btn_bck_info = InfoButton.create("In this section you "
                    + "can set one or more actions to be performed for your backup. "
                    + "Please click the button insert and set a priority, "
                    + "select the source and destination and choose whether "
                    + "to perform a recursive zip all files or just a copy.", manager);

            registerTableButtons();

            __btn_bck_confirm_add = ToolBarAction.newButton("btn_bck_confirm_add", "Ok",
                    "checkmark_24.png", (ActionEvent e) -> {
                        String prio = (String) editor.priority_edit.getSelectionModel().getSelectedItem();
                        String name = editor.name_edit.getText();
                        String act = (String) editor.action_edit.getSelectionModel().getSelectedItem();
                        String source = editor.fileordir_edit.getText();
                        String destination = editor.dest_edit.getText();

                        if (source != null && source.length() > 0 && destination != null && destination.length() > 0) {

                            if (name == null) {
                                name = "";
                            }

                            EncryptedNode node = new EncryptedNode();
                            node.getProperties().put("priority", prio);
                            node.getProperties().put("name", name);
                            node.getProperties().put("action", act);
                            node.getProperties().put("source", source);
                            node.getProperties().put("destination", destination);
                            data_table.add(new CellPropertiesManager(node));

                            addMainTable();
                            updateTable();

                        } else {

                            manager.createPopupMessage("bk_edit_err_operation", new AnswarePopupMessage() {
                                @Override
                                public void onOkAnsware() {
                                }

                                @Override
View Full Code Here

    }

    private void showMessage(final String message) {
        Platform.runLater(() -> {
            try {
                manager.createPopupMessage("bk_error_operation", new AnswarePopupMessage() {
                    @Override
                    public void onOkAnsware() {
                    }

                    @Override
View Full Code Here

    private void changeMasterPwd() {

        if (!pass.isEditorDisable()) {

            manager.createPopupMessage("ask_change_pwd_msg", new AnswarePopupMessage() {
                @Override
                public void onOkAnsware() {

                    if (manager.changeMasterPassword(pass.getValue())) {

                        manager.createPopupMessage("change_pwd_msg", new AnswarePopupMessage() {
                            @Override
                            public void onOkAnsware() {
                            }

                            @Override
                            public void onCancelAnsware() {
                            }
                        }).setHeader(RBLoader.ll("Master Password Changed."))
                                .setContent(RBLoader.ll("You have setted a new "
                                                + "master password.\n\nAll take effect after your next saving."))
                                .setOkButton(RBLoader.ll("Ok"))
                                .setIcon(UtilityFX.getImage("info_24.png"))
                                .show();

                        ck_change_masterpwd.setSelected(false);

                    } else {

                        manager.createPopupMessage("change_pwd_error", new AnswarePopupMessage() {
                            @Override
                            public void onOkAnsware() {
                            }

                            @Override
View Full Code Here

TOP

Related Classes of org.rat.free.security.makifx.core.utils.AnswarePopupMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.