Class DialogFactory


  • public final class DialogFactory
    extends Object
    • Method Detail

      • showConfirmation

        public static void showConfirmation​(String title,
                                            com.google.gwt.safehtml.shared.SafeHtml question,
                                            Callback confirm)
        Creates and shows a confirmation dialog using the provided question. When confirmed the specified callback is executed.
      • showConfirmation

        public static void showConfirmation​(String title,
                                            com.google.gwt.safehtml.shared.SafeHtml question,
                                            elemental2.dom.HTMLElement element,
                                            Callback confirm)
        Creates and shows a confirmation dialog using the question and the provided element. When confirmed the specified callback is executed.
      • buildConfirmation

        public static Dialog buildConfirmation​(String title,
                                               com.google.gwt.safehtml.shared.SafeHtml question,
                                               elemental2.dom.HTMLElement element,
                                               Callback confirm)
        Creates and returns a confirmation dialog using the question and the provided element. When confirmed the specified callback is executed.

        Please note that the dialog is not shown by this method. You need to call Dialog.show() on the returned dialog.

      • buildConfirmation

        public static Dialog buildConfirmation​(String title,
                                               com.google.gwt.safehtml.shared.SafeHtml question,
                                               elemental2.dom.HTMLElement element,
                                               Dialog.Size size,
                                               Callback confirm)
      • buildBlocking

        public static BlockingDialog buildBlocking​(String title,
                                                   com.google.gwt.safehtml.shared.SafeHtml message)
      • buildBlocking

        public static BlockingDialog buildBlocking​(String title,
                                                   Dialog.Size size,
                                                   com.google.gwt.safehtml.shared.SafeHtml message)
        Creates and returns a blocking dialog which can only be closed programmatically.

        Please note that the dialog is not shown by this method. You need to call Dialog.show() on the returned dialog.

      • buildLongRunning

        public static BlockingDialog buildLongRunning​(String title,
                                                      com.google.gwt.safehtml.shared.SafeHtml message)
        Creates and returns a blocking dialog w/ a spinner which can only be closed programmatically.

        Please note that the dialog is not shown by this method. You need to call Dialog.show() on the returned dialog.