Package hec.script
Class MessageBox
java.lang.Object
hec.script.MessageBox
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringshowConfirm(String msg, String title, int type) static voidshow an Error dialog to the userstatic voidshowInformation(String msg, String title) show an Informational dialog to the userstatic voidshowMessageBox(String msg, String title, int type) display a modal dialog to the userstatic StringshowOkCancel(String msg, String title) display an Ok/Cancel modal dialog to the userstatic voidshow a Plain dialog to the userstatic voidshowWarning(String msg, String title) show a Warning dialog to the userstatic Stringdisplay a Yes/No modal dialog to the userstatic StringshowYesNoCancel(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
-