/** * The JavaScript function "alert()". * @param message the message */ public void jsxFunction_alert(final Object message) { // use Object as parameter and perform String conversion by ourself // this allows to place breakpoint here and "see" the message object and its properties final String stringMessage = Context.toString(message); final AlertHandler handler = getWebWindow().getWebClient().getAlertHandler(); if (handler == null) { LOG.warn("window.alert(\"" + stringMessage + "\") no alert handler installed"); } else { handler.handleAlert(document_.getHtmlPage(), stringMessage); } }
/** * The JavaScript function "alert()". * @param message the message */ public void jsxFunction_alert(final Object message) { // use Object as parameter and perform String conversion by ourself // this allows to place breakpoint here and "see" the message object and its properties final String stringMessage = Context.toString(message); final AlertHandler handler = getWebWindow().getWebClient().getAlertHandler(); if (handler == null) { LOG.warn("window.alert(\"" + stringMessage + "\") no alert handler installed"); } else { handler.handleAlert(document_.getHtmlPage(), stringMessage); } }
/** * The JavaScript function "alert()". * @param message the message */ public void jsxFunction_alert(final Object message) { // use Object as parameter and perform String conversion by ourself // this allows to place breakpoint here and "see" the message object and its properties final String stringMessage = Context.toString(message); final AlertHandler handler = getWebWindow().getWebClient().getAlertHandler(); if (handler == null) { LOG.warn("window.alert(\"" + stringMessage + "\") no alert handler installed"); } else { handler.handleAlert(document_.getHtmlPage(), stringMessage); } }
/** * The JavaScript function {@code alert()}. * @param message the message */ @JsxFunction public void alert(final Object message) { // use Object as parameter and perform String conversion by ourself // this allows to place breakpoint here and "see" the message object and its properties final String stringMessage = Context.toString(message); final AlertHandler handler = getWebWindow().getWebClient().getAlertHandler(); if (handler == null) { LOG.warn("window.alert(\"" + stringMessage + "\") no alert handler installed"); } else { handler.handleAlert(document_.getPage(), stringMessage); } }
/** * The JavaScript function {@code alert()}. * @param message the message */ @JsxFunction public void alert(final Object message) { // use Object as parameter and perform String conversion by ourself // this allows to place breakpoint here and "see" the message object and its properties final String stringMessage = Context.toString(message); final AlertHandler handler = getWebWindow().getWebClient().getAlertHandler(); if (handler == null) { LOG.warn("window.alert(\"" + stringMessage + "\") no alert handler installed"); } else { handler.handleAlert(document_.getPage(), stringMessage); } }