| java.lang.Object org.directwebremoting.proxy.io.Context jsx3.lang.Object jsx3.gui.Alerts
Alerts | public class Alerts extends jsx3.lang.Object (Code) | | Mixin interface allows implementors to show alerts, confirms, and prompts.
author: Joe Walker [joe at getahead dot org] author: DRAPGEN - Dwr Reverse Ajax Proxy GENerator |
Method Summary | |
public void | alert(String strTitle, String strMessage, org.directwebremoting.proxy.CodeBlock fctOnOk, String strOk, String objParams) | public void | configureAlert(java.lang.Object objDialog, jsx3.lang.Object objParams) | public void | confirm(String strTitle, String strMessage, org.directwebremoting.proxy.CodeBlock fctOnOk, org.directwebremoting.proxy.CodeBlock fctOnCancel, String strOk, String strCancel, int intBtnDefault, org.directwebremoting.proxy.CodeBlock fctOnNo, String strNo, String objParams) | public jsx3.app.Model | getAlertsParent() | public T | getAlertsParent(Class<T> returnType) | public void | prompt(String strTitle, String strMessage, org.directwebremoting.proxy.CodeBlock fctOnOk, org.directwebremoting.proxy.CodeBlock fctOnCancel, String strOk, String strCancel, String objParams) |
Alerts | public Alerts(Context context, String extension, ScriptProxy scriptProxy)(Code) | | All reverse ajax proxies need context to work from
Parameters: scriptProxy - The place we are writing scripts to Parameters: context - The script that got us to where we are now |
alert | public void alert(String strTitle, String strMessage, org.directwebremoting.proxy.CodeBlock fctOnOk, String strOk, String objParams)(Code) | | show an alert dialog
Parameters: strTitle - the title of the dialog Parameters: strMessage - the message to display Parameters: 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 Parameters: strOk - the text of the ok button, can be false to remove button from display Parameters: objParams - argument to configureAlert() |
configureAlert | public void configureAlert(java.lang.Object objDialog, jsx3.lang.Object objParams)(Code) | | configure the dialog
Parameters: objDialog - the dialog Parameters: objParams - may include fields 'width', 'height', 'noTitle', and 'nonModal'. |
confirm | public void confirm(String strTitle, String strMessage, org.directwebremoting.proxy.CodeBlock fctOnOk, org.directwebremoting.proxy.CodeBlock fctOnCancel, String strOk, String strCancel, int intBtnDefault, org.directwebremoting.proxy.CodeBlock fctOnNo, String strNo, String objParams)(Code) | | show a confirm alert
Parameters: strTitle - the title of the dialog Parameters: strMessage - the message to display Parameters: 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 Parameters: 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 Parameters: strOk - the text of the ok button Parameters: strCancel - the text of the cancel button Parameters: intBtnDefault - the bold button that receives return key, 1:ok, 2:cancel, 3:no Parameters: 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 Parameters: strNo - the text of the no button Parameters: objParams - argument to configureAlert() |
getAlertsParent | public jsx3.app.Model getAlertsParent()(Code) | | implementors of this mixin interface must implement this method
the parent of the alert dialogs |
getAlertsParent | public T getAlertsParent(Class<T> returnType)(Code) | | implementors of this mixin interface must implement this method
Parameters: returnType - The expected return type the parent of the alert dialogs |
prompt | public void prompt(String strTitle, String strMessage, org.directwebremoting.proxy.CodeBlock fctOnOk, org.directwebremoting.proxy.CodeBlock fctOnCancel, String strOk, String strCancel, String objParams)(Code) | | show a text box input prompt
Parameters: strTitle - the title of the dialog Parameters: strMessage - the message to display Parameters: 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 Parameters: 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 Parameters: strOk - the text of the ok button Parameters: strCancel - the text of the cancel button Parameters: objParams - argument to configureAlert() |
Methods inherited from jsx3.lang.Object | public void ignoreReturn()(Code)(Java Doc)
|
|
|