Examples of AnswarePopupMessage


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

            }
        });

        export_btn_exec.setGraphic(new ImageView(Utility.getImage("inbox_48.png")));
        export_btn_exec.setOnAction((ActionEvent e) -> {
            manager.createPopupMessage("export_plugin_question_operation", new AnswarePopupMessage() {

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

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

                        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(Utility.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(Utility.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

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

    }

    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

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

                    @Override
                    public void onLinkPressed() {

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

                                    @Override
View Full Code Here

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

        }
    }

    private void showWelcomeMessageInfo() {
        InternalPopupMessage ipm = createPopupMessage("welcome_message_info",
                new AnswarePopupMessage() {
                    @Override
                    public void onOkAnsware() {
                    }

                    @Override
View Full Code Here

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

        }
        ipm.show();
    }

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

            @Override
View Full Code Here

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

        }
        ipm.show();
    }

    private void alertForceExit(String id, String header, String content) {
        InternalPopupMessage ipm = createPopupMessage(id, new AnswarePopupMessage() {
            @Override
            public void onOkAnsware() {
                Initializator.__sysExit(__EXIT_NO_ERROR__);
            }
View Full Code Here

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

                        + File.separator + maki_file_map.getName() + "_" + Utility.dataP() + ".xml");
            }

            if (checkNewFileToSave(new_text_file)) {

                createPopupMessage("main_save_msg", new AnswarePopupMessage() {
                    @Override
                    public void onOkAnsware() {
                        try {
                            __btn_save.setDisable(true);
                            save(new_text_file, true);
                            setStatusMessage("Save complete.", 3000);
                        } catch (BaseApplicationException exc) {
                            log("ERROR - SAVE main_save_msg file EXC:" + exc);
                            Utility.exc(exc);
                            exc.printStackTrace();
                            alert("err_in_save_grave1", "Error", exc.getMessage(), true, new AnswarePopupMessage() {

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

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

        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(Utility.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

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

    public static class InfoButton {

        public static ToolBarAction.Button create(@Nonnull final String content, @Nonnull final ManagerInterface manager) {
            return ToolBarAction.newButton("__btn_base_info", "Info",
                    "info_24.png", (ActionEvent e) -> {
                        manager.createPopupMessage("bk_info", new AnswarePopupMessage() {
                            @Override
                            public void onOkAnsware() {
                            }

                            @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.