OverviewSingleDeprecated

jsx3.gui

interface Alerts

jsx3.gui.Alerts

All Known Implementing Classes:

jsx3.app.Server, jsx3.gui.Dialog

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

Since:

3.0

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

alert

void alert(strTitle : String, strMessage : String, fctOnOk : Function, strOk : String, objParams : objParams)
show 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()

configureAlert

protected void configureAlert(objDialog : ?, objParams : Object)
configure the dialog

Parameters:

objDialogthe dialog
objParamsmay include fields 'width', 'height', 'noTitle', and 'nonModal'.

confirm

void confirm(strTitle : String, strMessage : String, fctOnOk : Function, fctOnCancel : Function, strOk : String, strCancel : String, intBtnDefault : int, fctOnNo : Function, strNo : String, objParams : objParams)
show 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()

getAlertsParent

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

Returns:

the parent of the alert dialogs 

prompt

void prompt(strTitle : String, strMessage : String, fctOnOk : Function, fctOnCancel : Function, strOk : String, strCancel : String, objParams : objParams)
show a text box input prompt

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()