Mixin interface allows implementors to show alerts, confirms, and prompts.
| Method Summary |
|---|
| void | show an alert dialog |
| protected void | configure the dialog |
| void | show a confirm alert |
| protected abstract jsx3.app.Model | implementors of this mixin interface must implement this method |
| void | show a text box input prompt |
show an alert dialog
Parameters:
strTitle – the title of the dialog
strMessage – the message to display
fctOnOk – callback function on pressing ok button, receives the dialog as an argument; if null the dialog will close itself; if defined must explicitly close the dialog
strOk – the text of the ok button, can be false to remove button from display
objParams – argument to configureAlert()
configure the dialog
Parameters:
objDialog – the dialog
objParams – may include fields 'width', 'height', 'noTitle', and 'nonModal'.
show a confirm alert
Parameters:
strTitle – the title of the dialog
strMessage – the message to display
fctOnOk – callback function on pressing ok button, receives the dialog as an argument; if null the dialog will close itself; if defined must explicitly close the dialog
fctOnCancel – callback function on pressing cancel button, receives the dialog as an argument; if null the dialog will close itself; if defined must explicitly close the dialog
strOk – the text of the ok button
strCancel – the text of the cancel button
intBtnDefault – the bold button that receives return key, 1:ok, 2:cancel, 3:no
fctOnNo – callback function on pressing no button, receives the dialog as an argument; if null the dialog will close itself; if defined must explicitly close the dialog
strNo – the text of the no button
objParams – argument to configureAlert()
implementors of this mixin interface must implement this method
Returns:
the parent of the alert dialogs
show a text box input prompt
Parameters:
strTitle – the title of the dialog
strMessage – the message to display
fctOnOk – callback function on pressing ok button, receives the dialog as an argument, and the value of the text input as a second argument; if null the dialog will close itself; if defined must explicitly close the dialog
fctOnCancel – callback function on pressing cancel button, receives the dialog as an argument; if null the dialog will close itself; if defined must explicitly close the dialog
strOk – the text of the ok button
strCancel – the text of the cancel button
objParams – argument to configureAlert()
Copyright © 2001-2007, TIBCO Software Inc.