Examples of AnswerPopupMessage


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

            evt.consume();

            showMessage("close_editor_invalid_title_message", "Invalid Title.",
                    "Press Ok to delete the account or Cancel to edit it.",
                    "Ok", "Cancel", false, new AnswerPopupMessage() {
                        @Override
                        public void onOk() {

                            UtilityFX.log("INVALID TITLE REMOVE! tit:" + tit);
                            deleteAccount(editor);
View Full Code Here

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

    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 AnswerPopupMessage() {
                            @Override
                            public void onOk() {
                            }

                            @Override
View Full Code Here

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

            p_over_lbl.setText(RBLoader.ll("Processes in Over"));
            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 AnswerPopupMessage() {
                            @Override
                            public void onOk() {
                                save();
                            }
View Full Code Here

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

                        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 AnswerPopupMessage() {
                            @Override
                            public void onOk() {
                                deleteAllEntry();
                            }

                            @Override
                            public void onCancel() {
                            }
                        }).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 AnswerPopupMessage() {
                            @Override
                            public void onOk() {
                                startBackup();
                            }

                            @Override
                            public void onCancel() {
                            }
                        }).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 AnswerPopupMessage() {
                                @Override
                                public void onOk() {
                                }

                                @Override
View Full Code Here

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

    }

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

                    @Override
View Full Code Here

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

                        UtilityFX.log("{WRN} Master Password CHANGED.");
                        manager.setStatusMessage("The Master Password as been changed.", 5000);

                    } else {

                        manager.createPopupMessage("change_pwd_error", new AnswerPopupMessage() {
                            @Override
                            public void onOk() {
                            }

                            @Override
View Full Code Here

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

            }
        });

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

                @Override
                public void onOk() {
                    importData();
                }
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.