public static interface Fn.ToJavaScript
Fn.Presenter
s that
wish to control what objects are passed into the JavaScript virtual
machine.
If a JavaScript engine makes callback to Java method that returns
a value, the Fn.ToJavaScript.toJavaScript(java.lang.Object)
method is
consulted to convert the Java value to something reasonable inside
JavaScript VM.
Note: The implementation based on JavaFX WebView
uses this interface to convert Java arrays to JavaScript ones.
Fn.Presenter
Modifier and Type | Method and Description |
---|---|
Object |
toJavaScript(Object toReturn)
Convert a Java return value into some object suitable for
JavaScript virtual machine.
|
Copyright © 2018 NetBeans. All rights reserved.