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

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


                    @Override
                    public void onLinkPressed() {

                        InternalPopupMessage ipm = createPopupMessage("about",
                                new AnswerPopupMessage() {
                                    @Override
                                    public void onOk() {
                                    }

                                    @Override
View Full Code Here


        }
    }

    private void showWelcomeMessageInfo() {
        InternalPopupMessage ipm = createPopupMessage("welcome_message_info",
                new AnswerPopupMessage() {
                    @Override
                    public void onOk() {
                        setStatusMessage("Press Confirm to save any changes.", 3000);
                    }
View Full Code Here

        }
        ipm.show();
    }

    private void alert(String id, String header, String content, boolean show_again) {
        InternalPopupMessage ipm = createPopupMessage(id, new AnswerPopupMessage() {
            @Override
            public void onOk() {
            }

            @Override
View Full Code Here

        }
        ipm.show();
    }

    private void alertForceExit(String id, String header, String content) {
        InternalPopupMessage ipm = createPopupMessage(id, new AnswerPopupMessage() {
            @Override
            public void onOk() {
                sysExit(__EXIT_NO_ERROR__);
            }
View Full Code Here

            log("WRN - Can't save plugin:" + plugin.getId() + " RETURN FALSE");
            selectPluginTab(plugin);
            return;
        }

        createPopupMessage("main_save_msg", new AnswerPopupMessage() {

            @Override
            public void onOk() {

                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 AnswerPopupMessage() {

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

                        UtilityFX.deleteFile(fileList.get(0), "save_previous");
                    } catch (Exception ex) {

                        log("{ERR} - CAN'T DELETE PREVIOUS SAVE DATA, ASK OR TRY BRUTE FORCE.");

                        createPopupMessage("wrn_message_file_previous_cant_delete", new AnswerPopupMessage() {
                            @Override
                            public void onOk() {
                                forceDelete(fileList.get(0), "force_del_previous");
                            }
View Full Code Here

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

                String message = defaultMessage(answare);

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

                    @Override
                    public void onCancel() {
                    }
                }).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 AnswerPopupMessage() {
                    @Override
                    public void onOk() {
                        sysExit(__EXIT_NO_ERROR__);
                    }
View Full Code Here

        }
        return false;
    }

    private void printAllAccounts() {
        manager.createPopupMessage("account_print_operation", new AnswerPopupMessage() {
            @Override
            public void onOk() {
                try {
                    DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
                    PrintService service = PrintServiceLookup.lookupDefaultPrintService();
View Full Code Here

        });
        return new ByteArrayInputStream(UtilityFX.getUTF8Bytes(sb.toString()));
    }

    private void showWarningPrint(Exception exc) {
        manager.createPopupMessage("account_err_print_operation", new AnswerPopupMessage() {
            @Override
            public void onOk() {
            }

            @Override
View Full Code Here

        if (data_table.contains(editor)) {

            String title = editor.getNode().getProperties().get("title");

            manager.createPopupMessage("delete_account", new AnswerPopupMessage() {
                @Override
                public void onOk() {
                    deleteAccount(editor);
                }
View Full Code Here

TOP

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

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.