OverviewSingleDeprecatedPropertiesEventsXSL Parameters

jsx3.gui

interface Alerts

jsx3.gui.Alerts

All Known Implementing Classes:

jsx3.app.Server, jsx3.gui.Dialog

abstract interface Alerts
Mixin interface allows implementors to show alerts, confirms, and prompts.

Since:

3.0

Method Summary
jsx3.gui.Dialog
alert(strTitle : String, strMessage : String, fctOnOk : Function, strOk : String, objParams : Object)
Shows an alert dialog.
protected void
configureAlert(objDialog : jsx3.gui.Dialog, objParams : Object)
Configures the alert dialog.
jsx3.gui.Dialog
confirm(strTitle : String, strMessage : String, fctOnOk : Function, fctOnCancel : Function, strOk : String, strCancel : String, intBtnDefault : int, fctOnNo : Function, strNo : String, objParams : Object)
Shows a confirm alert.
protected abstract jsx3.app.Model
implementors of this mixin interface must implement this method
jsx3.gui.Dialog
prompt(strTitle : String, strMessage : String, fctOnOk : Function, fctOnCancel : Function, strOk : String, strCancel : String, objParams : Object)
Shows an input prompt alert.
Method Detail

alert

jsx3.gui.Dialog alert(strTitle : String, strMessage : String, fctOnOk : Function, strOk : String, objParams : Object)
Shows an alert dialog.

Parameters:

strTitlethe title of the dialog
strMessagethe message to display
fctOnOkcallback 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
strOkthe text of the ok button, can be false to remove button from display
objParamsargument to configureAlert()

Returns:

 

See Also:

configureAlert()

configureAlert

protected void configureAlert(objDialog : jsx3.gui.Dialog, objParams : Object)
Configures the alert dialog.

Parameters:

objDialogthe dialog
objParamsmay include fields 'width' {int}, 'height' {int}, 'noTitle' {boolean}, and 'nonModal' {boolean}.

confirm

jsx3.gui.Dialog confirm(strTitle : String, strMessage : String, fctOnOk : Function, fctOnCancel : Function, strOk : String, strCancel : String, intBtnDefault : int, fctOnNo : Function, strNo : String, objParams : Object)
Shows a confirm alert.

Parameters:

strTitlethe title of the dialog
strMessagethe message to display
fctOnOkcallback 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
fctOnCancelcallback 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
strOkthe text of the ok button
strCancelthe text of the cancel button
intBtnDefaultthe bold button that receives return key, 1:ok, 2:cancel, 3:no
fctOnNocallback 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
strNothe text of the no button
objParamsargument to configureAlert()

Returns:

 

See Also:

configureAlert()

getAlertsParent

protected abstract jsx3.app.Model getAlertsParent()
implementors of this mixin interface must implement this method

Returns:

the parent of the alert dialogs 

prompt

jsx3.gui.Dialog prompt(strTitle : String, strMessage : String, fctOnOk : Function, fctOnCancel : Function, strOk : String, strCancel : String, objParams : Object)
Shows an input prompt alert.

Parameters:

strTitlethe title of the dialog
strMessagethe message to display
fctOnOkcallback 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
fctOnCancelcallback 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
strOkthe text of the ok button
strCancelthe text of the cancel button
objParamsargument to configureAlert()

Returns:

 

See Also:

configureAlert()