Spec-Zone .ru
спецификации, руководства, описания, API
|
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.Debugger
Debugger.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.Debugger
true
if the debugger is enabled,
false
otherwise.public void setEnabled(boolean enabled)
com.sun.javafx.scene.web.Debugger
Debugger.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.Debugger
enabled
- specifies whether the debugger should be enabled
or disabled.public void sendMessage(java.lang.String message)
com.sun.javafx.scene.web.Debugger
This method may only be called while the debugger is enabled.
sendMessage
in interface com.sun.javafx.scene.web.Debugger
message
- 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.Debugger
Callback.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.Debugger
null
if there is no such object.public void setMessageCallback(Callback<java.lang.String,java.lang.Void> callback)
com.sun.javafx.scene.web.Debugger
Callback.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.Debugger
callback
- 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