Class Dialog

java.lang.Object
org.adempiere.webui.window.Dialog

public final class Dialog extends Object
Static method for message and input dialog
  • Method Details

    • warn

      public static void warn(int windowNo, String adMessage)
      Display dialog with a warning icon
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
    • warn

      public static void warn(int windowNo, String adMessage, String title)
      Display a dialog with a warning icon
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      title - Message box title
    • warn

      public static void warn(int windowNo, String adMessage, String additionalMessage, String title)
      Display a dialog with a warning icon
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional message
      title - If none then one will be generated
    • error

      public static void error(int windowNo, String adMessage)
      Display dialog with an error icon
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
    • error

      public static void error(int windowNo, String adMessage, String additionalMessage)
      Display dialog with an error icon
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional message
    • error

      public static void error(int windowNo, String adMessage, String additionalMessage, Callback<Integer> callback)
      Display dialog with an error icon
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional message
      callback -
    • error

      public static void error(int windowNo, String adMessage, String additionalMessage, String title)
      Display dialog with an error icon
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional message
      title - If none then one will be generated
    • error

      public static void error(int windowNo, String adMessage, String additionalMessage, Callback<Integer> callback, String title)
      Display dialog with an error icon
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional message
      callback -
      title - If none then one will be generated
    • ask

      @Deprecated(forRemoval=true, since="11") public static boolean ask(int windowNo, String adMessage)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Ask Question with question icon and (OK) (Cancel) buttons
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      Returns:
      true, if OK
    • ask

      public static boolean ask(int windowNo, String adMessage, Callback<Boolean> callback)
      Ask Question with question icon and (OK) (Cancel) buttons
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      callback -
      Returns:
      ignore, use callback instead.
    • ask

      @Deprecated(forRemoval=true, since="11") public static boolean ask(int windowNo, String adMessage, String additionalMessage)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Ask Question with question icon and (OK) (Cancel) buttons
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional clear text message
      Returns:
      true, if OK
    • ask

      public static boolean ask(int windowNo, String adMessage, String additionalMessage, Callback<Boolean> callback)
      Ask Question with question icon and (OK) (Cancel) buttons
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional clear text message
      callback -
      Returns:
      ignore, use callback instead.
    • ask

      public static boolean ask(String title, int windowNo, String adMessage, Callback<Boolean> callback, Object... args)
      Ask Question with question icon and (OK) (Cancel) buttons
      Parameters:
      title -
      windowNo - Number of Window
      adMessage - Message to be translated
      callback -
      args -
      Returns:
      ignore, use callback instead.
    • ask

      public static boolean ask(int windowNo, String title, String adMessage, String msg, Callback<Boolean> callback)
      Ask Question with question icon and (OK) (Cancel) buttons
      Parameters:
      windowNo - Number of Window
      title - Title of the dialog panel
      adMessage - Message to be translated
      msg - Additional clear text message
      callback -
      Returns:
      ignore, use callback instead.
    • ask

      public static boolean ask(String title, int windowNo, String adMessage, String additionalMessage, Callback<Boolean> callback, Object... args)
      Ask Question with question icon and (OK) (Cancel) buttons
      Parameters:
      title -
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional clear text message
      callback -
      args -
      Returns:
      ignore, use callback instead.
    • askForInput

      public static void askForInput(String message, MLookup lookup, int editorType, Callback<Object> callback, org.zkoss.zk.ui.Desktop desktop, int windowNo)
      Parameters:
      message -
      lookup -
      editorType -
      callback -
      desktop -
      windowNo -
    • askForInput

      public static void askForInput(String message, MLookup lookup, int editorType, Callback<Object> callback, org.zkoss.zk.ui.Desktop desktop, int windowNo, String title, Object defaultValue)
      Parameters:
      message -
      lookup -
      editorType -
      callback -
      desktop -
      windowNo -
      title -
      defaultValue -
    • askForInput

      public static void askForInput(int windowNo, WEditor weditor, String adMessage, Callback<Object> callback)
      Parameters:
      windowNo -
      weditor -
      adMessage -
      callback -
    • askForInput

      public static void askForInput(int windowNo, WEditor weditor, String adMessage, String title, Callback<Object> callback)
      Parameters:
      windowNo -
      weditor -
      adMessage -
      title -
      callback -
    • askForInput

      public static void askForInput(int windowNo, String adMessage, Callback<String> callback)
      Parameters:
      windowNo -
      adMessage -
      callback -
    • askForInput

      public static void askForInput(int windowNo, String adMessage, String title, Callback<String> callback)
      Parameters:
      windowNo -
      adMessage -
      title -
      callback -
    • askForSecretInput

      public static void askForSecretInput(int windowNo, String adMessage, Callback<String> callback)
      Same as askForInput but uses password editor for input field.
      Parameters:
      windowNo -
      adMessage -
      callback -
    • askForInputTextConfirmation

      public static void askForInputTextConfirmation(int windowNo, WEditor weditor, String adMessage, Object[] adMessageArgs, String title, Callback<Map.Entry<Boolean,String>> callback)
      Confirmation dialog before deleting the records.
      Parameters:
      windowNo -
      weditor -
      adMessage -
      adMessageArgs -
      title -
      callback -
    • askForInputWithCancel

      public static void askForInputWithCancel(int windowNo, WEditor weditor, String adMessage, String title, Callback<Map.Entry<Boolean,Object>> callback)
      Parameters:
      windowNo -
      weditor -
      adMessage -
      title -
      callback -
    • info

      public static void info(int windowNo, String adMessage)
      Display dialog with information icon.
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
    • info

      public static void info(int windowNo, String adMessage, String additionalMessage)
      Display dialog with information icon.
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional message
    • info

      public static void info(int windowNo, String adMessage, String additionalMessage, String title)
      Display dialog with information icon.
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional message
      title - If none then one will be generated
    • info

      public static void info(int windowNo, String adMessage, String additionalMessage, String title, Callback<Integer> callback)
      Display dialog with information icon.
      Parameters:
      windowNo - Number of Window
      adMessage - Message to be translated
      additionalMessage - Additional message
      title - If none then one will be generated
      callback - (optional)