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 |
---|---|
java.lang.Object |
toJavaScript(java.lang.Object toReturn)
Convert a Java return value into some object suitable for
JavaScript virtual machine.
|
Copyright © 2021 The Apache Software Foundation. All rights reserved.