Mixin interface allows implementors to show alerts, confirms, and prompts.
Shows 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()
Returns:
See Also:
Configures the alert dialog.
Parameters:
objDialog – the dialog
objParams – may include fields 'width' {int}, 'height' {int},
'noTitle' {boolean}, and 'nonModal' {boolean}.
Shows 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()
Returns:
See Also:
implementors of this mixin interface must implement this method
Returns:
the parent of the alert dialogs
Shows an input prompt 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, 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()
Returns:
See Also:
Copyright © 2001-2010, TIBCO Software Inc.