private class WebEngine.DebuggerImpl
extends java.lang.Object
implements com.sun.javafx.scene.web.Debugger
| Modifier and Type | Method and Description |
|---|---|
Callback<java.lang.String,java.lang.Void> |
getMessageCallback()
Returns the message callback object registered with the debugger.
|
boolean |
isEnabled()
Determines whether the debugger is enabled.
|
void |
sendMessage(java.lang.String message)
Sends a message to the debugger.
|
void |
setEnabled(boolean enabled)
Enables or disables the debugger.
|
void |
setMessageCallback(Callback<java.lang.String,java.lang.Void> callback)
Registers a message callback object with the debugger.
|
public boolean isEnabled()
com.sun.javafx.scene.web.DebuggerDebugger.sendMessage(java.lang.String) method may only be called
while the debugger is enabled.
The message callback object registered with a debugger is only called
while the debugger is enabled.isEnabled in interface com.sun.javafx.scene.web.Debuggertrue if the debugger is enabled,
false otherwise.public void setEnabled(boolean enabled)
com.sun.javafx.scene.web.DebuggerDebugger.sendMessage(java.lang.String) method may only be called
while the debugger is enabled.
The message callback object registered with a debugger is only called
while the debugger is enabled.
This method has no effect
if the enabled parameter is true
and the debugger is already enabled,
or if the enabled parameter is false
and the debugger is already disabled.
setEnabled in interface com.sun.javafx.scene.web.Debuggerenabled - specifies whether the debugger should be enabled
or disabled.public void sendMessage(java.lang.String message)
com.sun.javafx.scene.web.DebuggerThis method may only be called while the debugger is enabled.
sendMessage in interface com.sun.javafx.scene.web.Debuggermessage - the message to be sent to the debugger.
May not be null.public Callback<java.lang.String,java.lang.Void> getMessageCallback()
com.sun.javafx.scene.web.DebuggerCallback.call(P) method to deliver a message to
the debugger frontend.
The message passed to the message callback is a text string
in the format specified by the WebKit Remote Debugging Protocol.getMessageCallback in interface com.sun.javafx.scene.web.Debuggernull if there is no such object.public void setMessageCallback(Callback<java.lang.String,java.lang.Void> callback)
com.sun.javafx.scene.web.DebuggerCallback.call(P) method to deliver a message to
the debugger frontend.
The message passed to the message callback is a text string
in the format specified by the WebKit Remote Debugging Protocol.setMessageCallback in interface com.sun.javafx.scene.web.Debuggercallback - the message callback object to be registered with
the debugger. May be null.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.