Package hec.script
Class MessageBox
java.lang.Object
hec.script.MessageBox
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
showConfirm
(String msg, String title, int type) static void
show an Error dialog to the userstatic void
showInformation
(String msg, String title) show an Informational dialog to the userstatic void
showMessageBox
(String msg, String title, int type) display a modal dialog to the userstatic String
showOkCancel
(String msg, String title) display an Ok/Cancel modal dialog to the userstatic void
show a Plain dialog to the userstatic void
showWarning
(String msg, String title) show a Warning dialog to the userstatic String
display a Yes/No modal dialog to the userstatic String
showYesNoCancel
(String msg, String title) display a Yes/No/Cancel modal dialog to the user
-
Method Details
-
showError
show an Error dialog to the user- Parameters:
msg
- the message for the dialogtitle
- the title for the dialog
-
showWarning
show a Warning dialog to the user- Parameters:
msg
- the message for the dialogtitle
- the title for the dialog
-
showInformation
show an Informational dialog to the user- Parameters:
msg
- the message for the dialogtitle
- the title for the dialog
-
showPlain
show a Plain dialog to the user- Parameters:
msg
- the message for the dialogtitle
- the title for the dialog
-
showMessageBox
display a modal dialog to the user- Parameters:
msg
- the message for the dialogtitle
- the title for the dialogtype
- the dialog type.
-
showOkCancel
display an Ok/Cancel modal dialog to the user- Parameters:
msg
- the message for the dialogtitle
- the title for the dialog- Returns:
- one of the three Strings
"ok"
,"cancel"
, or"closed"
-
showYesNo
display a Yes/No modal dialog to the user- Parameters:
msg
- the message for the dialogtitle
- the title for the dialog- Returns:
- one of the three Strings
"yes"
,"no"
, or"closed"
-
showYesNoCancel
display a Yes/No/Cancel modal dialog to the user- Parameters:
msg
- the message for the dialogtitle
- the title for the dialog- Returns:
- one of the four Strings
"yes"
,"no"
,"cancel"
or"closed"
-
showConfirm
-