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

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


    }

    private void showMessage(final String id, final String title,
            final String message, final String ok, final String cancel,
            final boolean doNotAskAgain, final AnswarePopupMessage listener) {
        InternalPopupMessage ipm = manager.createPopupMessage(id, listener).setHeader(RBLoader.ll(title))
                .setContent(RBLoader.ll(message))
                .setOkCancelButton(RBLoader.ll(ok), RBLoader.ll(cancel))
                .setIcon(UtilityFX.getImage("info_24.png"));
        if (doNotAskAgain) {
            ipm.setDoNotAskAgain();
        }
        ipm.show();
    }
View Full Code Here


                    }

                    @Override
                    public void onLinkPressed() {

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

                                    @Override
                                    public void onCancel() {
                                    }
                                }).setHeader("About")
                        .setContent(Constants.LICENSE_TXT)
                        .setOkButton("Ok")
                        .setIcon(UtilityFX.getImage(Constants.ICN_OFFICIAL32));
                        ipm.show();

                    }
                });

        __border_root = new BorderPane();
View Full Code Here

            ex.printStackTrace();
        }
    }

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

                    @Override
                    public void onCancel() {
                    }
                }).setHeader("Welcome")
                .setContent(RBLoader.ll("Thanks for your choice.")
                        + "\n\n"
                        + RBLoader.ll("MakiPass created the directory \"")
                        + maki_directory.toString()
                        + RBLoader.ll("\" for user \"")
                        + master_username
                        + "\".\n"
                        + RBLoader.ll("The current and previous data are stored in this area and can be accessed by \"Explore\" function.") + " "
                        + RBLoader.ll("Note: If you delete this directory all data will be lost. This will allow you to create a new maki database."))
                .setOkButton("Ok")
                .setDoNotAskAgain()
                .setIcon(UtilityFX.getImage(Constants.ICN_OFFICIAL32));
        ipm.show();
    }
View Full Code Here

    private void alert(String id, String header, String content) {
        alert(id, header, content, true);
    }

    private void alert(String id, String header, String content, boolean show_again, AnswerPopupMessage ans) {
        InternalPopupMessage ipm = createPopupMessage(id, ans)
                .setHeader(RBLoader.ll(header))
                .setContent(RBLoader.ll(content))
                .setOkButton(RBLoader.ll("ok"))
                .setIcon(UtilityFX.getImage("help_24.png"));

        if (!show_again) {
            ipm.setDoNotAskAgain();
        }
        ipm.show();
    }
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
            public void onCancel() {
            }
        }).setHeader(RBLoader.ll(header))
                .setContent(RBLoader.ll(content))
                .setOkButton(RBLoader.ll("ok"))
                .setIcon(UtilityFX.getImage("help_24.png"));

        if (!show_again) {
            ipm.setDoNotAskAgain();
        }
        ipm.show();
    }
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__);
            }

            @Override
            public void onCancel() {
            }
        }).setHeader(RBLoader.ll(header))
                .setContent(RBLoader.ll(content))
                .setOkButton(RBLoader.ll("Close"))
                .setIcon(UtilityFX.getImage("help_24.png"));
        ipm.show();
    }
View Full Code Here

                    }

                    @Override
                    public void onLinkPressed() {

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

                                    @Override
                                    public void onCancelAnsware() {
                                    }
                                }).setHeader("About")
                        .setContent(Constants.LICENSE_TXT)
                        .setOkButton("Ok")
                        .setIcon(UtilityFX.getImage(Constants.ICN_OFFICIAL32));
                        ipm.show();

                    }
                });

        __border_root = new BorderPane();
View Full Code Here

            ex.printStackTrace();
        }
    }

    private void showWelcomeMessageInfo() {
        InternalPopupMessage ipm = createPopupMessage("welcome_message_info",
                new AnswarePopupMessage() {
                    @Override
                    public void onOkAnsware() {
                        setStatusMessage("Press Confirm to save any changes.", 3000);
                    }

                    @Override
                    public void onCancelAnsware() {
                    }
                }).setHeader("Welcome")
                .setContent(RBLoader.ll("Thanks for your choice.")
                        + "\n\n"
                        + RBLoader.ll("MakiPass created the directory \"")
                        + maki_directory.toString()
                        + RBLoader.ll("\" for user \"")
                        + master_username
                        + "\".\n\n"
                        + RBLoader.ll("The current and previous data are stored in this area "
                                + "and can be accessed by \"Explore\" function."))
                .setOkButton("Ok")
                .setDoNotAskAgain()
                .setIcon(UtilityFX.getImage(Constants.ICN_OFFICIAL32));
        ipm.show();
    }
View Full Code Here

    private void alert(String id, String header, String content) {
        alert(id, header, content, true);
    }

    private void alert(String id, String header, String content, boolean show_again, AnswarePopupMessage ans) {
        InternalPopupMessage ipm = createPopupMessage(id, ans)
                .setHeader(RBLoader.ll(header))
                .setContent(RBLoader.ll(content))
                .setOkButton(RBLoader.ll("ok"))
                .setIcon(UtilityFX.getImage("help_24.png"));

        if (!show_again) {
            ipm.setDoNotAskAgain();
        }
        ipm.show();
    }
View Full Code Here

        }
        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
            public void onCancelAnsware() {
            }
        }).setHeader(RBLoader.ll(header))
                .setContent(RBLoader.ll(content))
                .setOkButton(RBLoader.ll("ok"))
                .setIcon(UtilityFX.getImage("help_24.png"));

        if (!show_again) {
            ipm.setDoNotAskAgain();
        }
        ipm.show();
    }
View Full Code Here

TOP

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

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.