Class DialogFactory


  • public final class DialogFactory
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static BlockingDialog buildBlocking​(String title, com.google.gwt.safehtml.shared.SafeHtml message)  
      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.
      static Dialog buildConfirmation​(String title, com.google.gwt.safehtml.shared.SafeHtml question, elemental2.dom.HTMLElement element, Dialog.Size size, org.jboss.hal.spi.Callback confirm)  
      static Dialog buildConfirmation​(String title, com.google.gwt.safehtml.shared.SafeHtml question, elemental2.dom.HTMLElement element, org.jboss.hal.spi.Callback confirm)
      Creates and returns a confirmation dialog using the question and the provided element.
      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.
      static void showConfirmation​(String title, com.google.gwt.safehtml.shared.SafeHtml question, elemental2.dom.HTMLElement element, org.jboss.hal.spi.Callback confirm)
      Creates and shows a confirmation dialog using the question and the provided element.
      static void showConfirmation​(String title, com.google.gwt.safehtml.shared.SafeHtml question, org.jboss.hal.spi.Callback confirm)
      Creates and shows a confirmation dialog using the provided question.
    • Method Detail

      • showConfirmation

        public static void showConfirmation​(String title,
                                            com.google.gwt.safehtml.shared.SafeHtml question,
                                            org.jboss.hal.spi.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,
                                            org.jboss.hal.spi.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,
                                               org.jboss.hal.spi.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,
                                               org.jboss.hal.spi.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.