Package hec.script

Class MessageBox

java.lang.Object
hec.script.MessageBox

public class MessageBox extends Object
  • Method Details

    • showError

      public static void showError(String msg, String title)
      show an Error dialog to the user
      Parameters:
      msg - the message for the dialog
      title - the title for the dialog
    • showWarning

      public static void showWarning(String msg, String title)
      show a Warning dialog to the user
      Parameters:
      msg - the message for the dialog
      title - the title for the dialog
    • showInformation

      public static void showInformation(String msg, String title)
      show an Informational dialog to the user
      Parameters:
      msg - the message for the dialog
      title - the title for the dialog
    • showPlain

      public static void showPlain(String msg, String title)
      show a Plain dialog to the user
      Parameters:
      msg - the message for the dialog
      title - the title for the dialog
    • showMessageBox

      public static void showMessageBox(String msg, String title, int type)
      display a modal dialog to the user
      Parameters:
      msg - the message for the dialog
      title - the title for the dialog
      type - the dialog type.
    • showOkCancel

      public static String showOkCancel(String msg, String title)
      display an Ok/Cancel modal dialog to the user
      Parameters:
      msg - the message for the dialog
      title - the title for the dialog
      Returns:
      one of the three Strings "ok", "cancel", or "closed"
    • showYesNo

      public static String showYesNo(String msg, String title)
      display a Yes/No modal dialog to the user
      Parameters:
      msg - the message for the dialog
      title - the title for the dialog
      Returns:
      one of the three Strings "yes", "no", or "closed"
    • showYesNoCancel

      public static String showYesNoCancel(String msg, String title)
      display a Yes/No/Cancel modal dialog to the user
      Parameters:
      msg - the message for the dialog
      title - the title for the dialog
      Returns:
      one of the four Strings "yes", "no", "cancel" or "closed"
    • showConfirm

      public static String showConfirm(String msg, String title, int type)