public class DefaultBrowserDelegate extends Object implements BrowserDelegate
BrowserDelegate
that does nothing other
than log any javascript calls, etc.
Confirm will always return false. Prompt will
always return the default value. No dialogs will
actually be shown.Constructor and Description |
---|
DefaultBrowserDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
javaScriptAlert(com.trolltech.qt.webkit.QWebFrame originatingFrame,
String msg) |
boolean |
javaScriptConfirm(com.trolltech.qt.webkit.QWebFrame originatingFrame,
String msg) |
void |
javaScriptConsoleMessage(String message,
int lineNumber,
String sourceID) |
String |
javaScriptPrompt(com.trolltech.qt.webkit.QWebFrame originatingFrame,
String msg,
String defaultValue) |
public DefaultBrowserDelegate()
public void javaScriptAlert(com.trolltech.qt.webkit.QWebFrame originatingFrame, String msg)
javaScriptAlert
in interface BrowserDelegate
public boolean javaScriptConfirm(com.trolltech.qt.webkit.QWebFrame originatingFrame, String msg)
javaScriptConfirm
in interface BrowserDelegate
public void javaScriptConsoleMessage(String message, int lineNumber, String sourceID)
javaScriptConsoleMessage
in interface BrowserDelegate
public String javaScriptPrompt(com.trolltech.qt.webkit.QWebFrame originatingFrame, String msg, String defaultValue)
javaScriptPrompt
in interface BrowserDelegate